GitHub - twostraws/whats-new-in-swift-5-0: An Xcode playground that demonstrates the new features introduced in Swift 5.0. (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Repository files navigation
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. You might also want to read What’s New in Swift 4.2 and What's New in Swift 4.1. Alternatively, I have a whole website dedicated to tracking what's new in Swift – you should check it out at https://www.whatsnewinswift.com.
If you hit problems or have questions, you're welcome to tweet me @twostraws or email paul@hackingwithswift.com.