Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
String with the first letter written uppercase.
import Foundation
extension String {
var titleizedString: String {
return String(characters.prefix(1)).uppercaseString + String(characters.dropFirst())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.