Character category propertiesBasics article available: Strings
I absolutely love the many different category properties that were added to Swift’s
Character type as part of Swift 5.0. I’ve been writing a ton of string parsing code lately, and these properties have been so incredibly useful.
let character: Character = "A" character.isLetter // true character.isNumber // false character.isUppercase // true character.isSymbol // false character.isCurrencySymbol // false character.isASCII // true
My favorite continuous integration service. Automatically build, test and distribute your app on every single commit that you make. Bitrise is fast, rock solid, and takes just a few minutes to set up. Try it for free, and see how it can improve your team’s workflow.