Reading List
Swift’s Versioned canImport() from Michael Tsai RSS feed.
Swift’s Versioned canImport()
Marco Eidinger: SwiftUI.Font.width(_:) was actually introduced in iOS 16.1 and not in iOS 16.0 as the documentation suggests.[…]While researching a solution, I stumbled on an interesting fact that #if canImport allows specifying a version that gets checked during compile-time. The version gets compared against the -user-module-version flag in the .swiftmodule file using.[…]Suppose the framework and […]