Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created April 10, 2023 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/af0079c9ea98a174c89dbfca975fe78d to your computer and use it in GitHub Desktop.
Save laevandus/af0079c9ea98a174c89dbfca975fe78d to your computer and use it in GitHub Desktop.
// 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