Enumerations can be used instead of “Magic Strings” in Swift. One good use is comparisons of segue identifiers.
Peter Solarz
I'd rather be in outer space 🛸
todays bird
Mike Driver
Xuebing Du

Janaina Medeiros

⁂
Aqua Utopia|海の底で記憶を紡ぐ
sheepfilms

★
Three Goblin Art

Kiana Khansmith
Show & Tell
"I'm Dorothy Gale from Kansas"

blake kathryn
noise dept.
KIROKAZE

No title available
Jules of Nature
d e v o n

seen from Türkiye

seen from Türkiye
seen from Spain
seen from Israel
seen from Netherlands
seen from Malaysia
seen from United States
seen from United Kingdom
seen from United States

seen from United States
seen from United States
seen from United States
seen from United States

seen from Türkiye
seen from United States
seen from United States

seen from United States

seen from United States

seen from United States
seen from United States
@whatilearnedinswift
Enumerations can be used instead of “Magic Strings” in Swift. One good use is comparisons of segue identifiers.
Swift 1.2 got rid of the required, parameterless initialiser of UIViewController. No longer can we call UIViewController()
Swift 1.2 includes improvements to the language, this includes breaking changes. This post documents the main highlights of what’s changed.
Topics covered: as, swift enums, let, if let, sets
To migrate Swift code to use Swift 1.2 a handy migrator tool can be found in Xcode at Edit > Convert > To Latest Swift Syntax...
For in depth documentation of all the changes with Xcode 6.3 see the release notes.
For a more in depth view of the highlights Ray Wenderlich also goes into a bit more depth.
It turns out that being open ended decreases performance. See how in Swift performance can be improved by specifying final / private / Whole Module Optimization
Check out here how to turn on Whole Module Optimization in Xcode 6.3