-
-
Save laevandus/cbb270f6d5ade86d1d055108be02b360 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This API is available in iOS 16, macOS 13.0, tvOS 16.0, watchOS 9.0. | |
// Using backDeployed we can make it available in old OSes, like iOS 15 etc | |
extension Font { | |
@backDeployed(before: iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0) | |
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *) | |
public static func system(size: CGFloat, weight: Font.Weight? = nil, design: Font.Design? = nil) -> Font { | |
fatalError("Implement") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment