How to capitalise first letter of String in Swift?

Advertisements

Advertisements

Data types in Swift

Swift provides us with both built-in and user defined data types. The most common data types available with Swift are as follows: Integer Float Double Boolean Optional Tuple Character String

String mutability in Swift

We can allow a string to be modified (mutated) or not by assigning it to constant(let) (doesn’t allow modification) or variable (var)(allows modification) in Swift. In case of objective-c and …