Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/twostraws/whats-new-in-swift-5-0
An Xcode playground that demonstrates the new features introduced in Swift 5.0.
https://github.com/twostraws/whats-new-in-swift-5-0
features-introduced playground swift xcode xcode-playground
Last synced: about 2 months ago
JSON representation
An Xcode playground that demonstrates the new features introduced in Swift 5.0.
- Host: GitHub
- URL: https://github.com/twostraws/whats-new-in-swift-5-0
- Owner: twostraws
- Created: 2018-09-17T16:20:21.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2020-06-10T14:48:01.000Z (over 4 years ago)
- Last Synced: 2024-06-08T09:35:50.817Z (3 months ago)
- Topics: features-introduced, playground, swift, xcode, xcode-playground
- Language: Swift
- Size: 2.22 MB
- Stars: 729
- Watchers: 33
- Forks: 51
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What’s new in Swift 5.0?
This is an Xcode playground that demonstrates the new features introduced in Swift 5.0:
* Raw strings
* A standard `Result` type
* Customizing string interpolation
* Dynamically callable types
* Handling future enum cases
* Flattening nested optionals resulting from `try?`
* Checking for integer multiples
* Transforming and unwrapping dictionary values with `compactMapValues()`This is designed to complement my existing article [What’s New in Swift 5.0](https://www.hackingwithswift.com/articles/126/whats-new-in-swift-5-0). You might also want to read [What’s New in Swift 4.2](https://www.hackingwithswift.com/articles/77/whats-new-in-swift-4-2) and [What's New in Swift 4.1](https://www.hackingwithswift.com/articles/50/whats-new-in-swift-4-1). Alternatively, I have a whole website dedicated to tracking [what's new in Swift](https://www.whatsnewinswift.com) – you should check it out at .
If you hit problems or have questions, you're welcome to tweet me [@twostraws](https://twitter.com/twostraws) or email .
![Screenshot of Xcode 10.2 running this playground.](playground-screenshot.png)