String
struct String
Extensions for String class.
-
Trim the string in specified range. Takes in parameters two indexes.
Declaration
Swift
public func substring(from: Int, to: Int) -> String
-
Check does current string can be casted to Int type.
Declaration
Swift
public var isNumber: Bool { get }
-
Returns translation for given key. Search in main bundle for file Localizable.strings, print message if not found. If key is not found, then message is printed.
Declaration
Swift
public var localize: String { get }