Capitalize all words in a string


I have a string and want to capitalize all the "words" in it.


// String literal
let s = "hello horld"

// Replace "World" with "Guys"

let b = s.capitalizedString

Heard the news?

The Swift Cookbook for Swift 3 is at last here! For iBooks, Kindle and Paperback.
Hurry up - and Check it out! ;-)