-
-
Notifications
You must be signed in to change notification settings - Fork 17
Support OS 26.0 #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request introduces compatibility updates for iOS 26+ along with visual design refinements. Key changes include:
- Enhancing GlassBackgroundModifier with conditional application of the new glassEffect API.
- Updating the _BlankTemplate view to use a ZStack with a gradient background and bold text.
- Adjusting the navigation button styling in Buttons.swift to selectively apply effects based on OS version.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| Sources/SwiftGlass/GlassBackgroundModifier.swift | Enhanced view modifier with conditional glassEffect and shadow for iOS 26+ |
| Demo/Demo/Samples/_BlankTemplate.swift | Updated layout to use ZStack with gradient background and bold text styling |
| Demo/Demo/Samples/Essential/Buttons.swift | Added conditional branches for button styling to support updated navigation designs |
Comments suppressed due to low confidence (1)
Demo/Demo/Samples/_BlankTemplate.swift:15
- [nitpick] Verify that the inclusion of the Apple logo character in the greeting text is intentional and aligns with the project's branding guidelines.
Text("Hello, Developer!")
Add macOS 26 and Xcode 26
|
Skip workflow as not available |
|
hi! out of curiosity, why does this require Swift 6? https://github.com/1998code/SwiftGlass/releases/tag/1.9.9 |
|
@benguild Hi, this issue has been resolved in the latest version :) |
This pull request introduces compatibility updates for iOS 26 and other platforms, refines the visual design of components, and enhances the
GlassBackgroundModifierfor better rendering effects. The changes ensure backward compatibility while leveraging new APIs where available.Compatibility updates for iOS 26 and other platforms:
Demo/Demo/Samples/Essential/Buttons.swift: Added conditional logic to use updated button styles and effects for iOS 26 and newer platforms. For older versions, the previous styles are retained. [1] [2] [3]Sources/SwiftGlass/GlassBackgroundModifier.swift: Enhanced theGlassBackgroundModifierto applyglassEffectfor iOS 26 and newer platforms, ensuring improved rendering while maintaining compatibility with older versions. [1] [2]Visual design improvements:
Demo/Demo/Samples/_BlankTemplate.swift: Updated the_BlankTemplateview to use aZStacklayout with a gradient background (bg) for a more polished appearance. The text styling was also adjusted to include bold formatting.