Marco EidingerforSwifty Tech by Marco Eidingerblog.eidinger.info·Mar 28, 2023SDK conditional code with canImport(module, _version: "1.2.3.4")In this blog post, I explain when and why you might want to use the versioned canImport compilation statement, which challenges arise, and what better alternatives exist. Example: #if canImport(SwiftUI, _version: "4.1.17") Example of SDK conditional ...15 likes·1.3K readsSwiftAdd a thoughtful commentNo comments yetBe the first to start the conversation.