Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if #available(iOS 10, macOS 10.12, *) { //must be on iOS 10 or later, MacOS10.12 or later,
- //* means all other platform doesnt matter what version it is
- // Use iOS 10 APIs on iOS, and use macOS 10.12 APIs on macOS,
- } else {
- // Fall back to earlier iOS and macOS APIs
- }
Add Comment
Please, Sign In to add comment