Tweeting tips and tricks about #swift #xcode #apple Twitter @batikansosun Weekly Swift Blogging
Availability checking in Swift
if #available(iOS 13, *) {} else {
someOldStuff()
}
if #unavailable(iOS 13, *) {
someOldStuff()
}

What are Swift Literals and how do they work?

Photo by Joshua Reddekopp on Unsplash
  • What are the Swift literals?
  • How do they work?
  • Standard literals
  • Literal initialization for custom types

What Are the Swift Literals?

Batikan Sosun

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store