Skip to content

fix(iOS): add compile guard iOS 26 SwiftUI symbol#546

Merged
thiagobrez merged 2 commits into
callstack:mainfrom
gabecorso:fix/compiler-guards-ios26-symbols
Jun 30, 2026
Merged

fix(iOS): add compile guard iOS 26 SwiftUI symbol#546
thiagobrez merged 2 commits into
callstack:mainfrom
gabecorso:fix/compiler-guards-ios26-symbols

Conversation

@gabecorso

Copy link
Copy Markdown
Contributor

PR Description

  • Bug fix. iOS-26 SwiftUI symbols (TabViewBottomAccessoryPlacement, .tabViewBottomAccessory, .tabViewBottomAccessoryPlacement) are guarded only by runtime @available checks in BottomAccessoryProvider.swift and NewTabView.swift, so the package fails to compile on Xcode < 26 with cannot find type … in scope.
  • Add #if compiler(>=6.2) compile-time guards matching the pattern already used in TabViewProps.swift and
    TabViewImpl.swift

How to test?

  1. Open the project in Xcode 16 (Swift < 6.2)
  2. Build for iOS — should compile without errors
  3. Open the project in Xcode 26 (Swift 6.2+)
  4. Build for iOS — should work as before

Screenshots

N/A

gabecorso and others added 2 commits June 24, 2026 09:51
-iOS-26 SwiftUI symbols are guarded only by runtime @available checks, causing compilation to fail on Xcode < 26 with "cannot find type … in scope".
- add #if compiler >=6.2 to fix
- pattern mirrored from TabViewProps.swift

@thiagobrez thiagobrez left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for working on this @gabecorso!

@thiagobrez thiagobrez added this pull request to the merge queue Jun 30, 2026
Merged via the queue into callstack:main with commit 671c97f Jun 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants