logo
logo
Sign in

Swift 4 vs Swift 3 - Differences

avatar
Max Smith
Swift 4 vs Swift 3 - Differences

As Apple claims, Swift is a fantastic language to write code on. Among the adjectives Swift is described with, are:

  • fast
  • type-safe (in contrast, Objective-C is not)
  • expressive

Back to Swift, and it’s new 4.0 version in particular, which updates does it bring to iOS developers worldwide?

  • Strings

String now conforms to Collection protocol thanks to SE-0163 proposal. Remember Swift 1.x?

There is no need in characters array property now as you can iterate over String directly:

let string = "Hello, Mind Studios!"

for character in string {

print(character)

}

Read more in our freshly-published article Swift 4 vs Swift 3 - Differences

collect
0
avatar
Max Smith
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more