Post

Replies

Boosts

Views

Activity

Using SwiftUI APIs introduced in iOS minor releases
I have a Swift package that uses SwiftUI.Font.width that was introduced in iOS 16.1 (and not like the documentation suggests in iOS 16.0) Using this function in Xcode 14.0 (iOS 16.0) results in a compilation error. I tried using a conditional compilation statement but I still receive a compilation error in Xcode 14.0. if #available(iOS 16.1, *) { var font = Font.system(.headline) font = font.width(Font.Width.condensed) } My Swift package has minimum swift-tools-version of 5.5. and even changing to 5.7 would mean that developers could use Xcode 14 theoretically :frowning: Any suggestions?
1
0
440
Mar ’23
Using SwiftUI APIs introduced in iOS minor releases
I have a Swift package that uses SwiftUI.Font.width that was introduced in iOS 16.1 (and not like the documentation suggests in iOS 16.0) Using this function in Xcode 14.0 (iOS 16.0) results in a compilation error. I tried using a conditional compilation statement but I still receive a compilation error in Xcode 14.0. if #available(iOS 16.1, *) { var font = Font.system(.headline) font = font.width(Font.Width.condensed) } My Swift package has minimum swift-tools-version of 5.5. and even changing to 5.7 would mean that developers could use Xcode 14 theoretically :frowning: Any suggestions?
Replies
1
Boosts
0
Views
440
Activity
Mar ’23