if #available checks whether something exists. #unavailable is the clean inverse...
Paul Hudson @twostraws@mastodon.social
if #available checks whether something exists. #unavailable is the clean inverse - no more empty if blocks with all your real code hidden in the else. https://www.hackingwithswift.com/swift/5.6/unavailable