Created
April 10, 2023 02:07
-
-
Save laevandus/af0079c9ea98a174c89dbfca975fe78d 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