Apple has released Swift 5.6 with the release of Xcode 13.3. We have added support for Swift 5.6. You can now choose between Swift 5.5 and Swift 5.6 in the online version of Swiftify.
What's New in Swift 5.6?
Swift 5.6 introduces many new language features.
It is now possible to write inverted availability conditions using the new
#unavailable keyword. Using
#available in Swift 5.5 or earlier:
#unavailable in Swift 5.6:
Type placeholders direct the compiler to fill in that portion of the type according to the usual type inference rules. The following example can better explain this:
In addition to the updates mentioned above, Swift 5.6 includes other essential updates like:
For a quick dive into some of what’s new in Swift 5.6, check out this playground put together by Paul Hudson.
Swift 5.7 would make it possible to unwrap optional variables with a shorthand syntax.