Skip to content

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

Open
gabecorso wants to merge 1 commit into
callstack:mainfrom
gabecorso:fix/compiler-guards-ios26-symbols
Open

fix(iOS): add compile guard iOS 26 SwiftUI symbol#546
gabecorso wants to merge 1 commit into
callstack:mainfrom
gabecorso:fix/compiler-guards-ios26-symbols

Conversation

@gabecorso

Copy link
Copy Markdown

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

-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
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.

1 participant