diff --git a/Source/Modules/ControllerModules/StringUtils.swift b/Source/Modules/ControllerModules/StringUtils.swift index d1fcfd47..4ec1fa46 100644 --- a/Source/Modules/ControllerModules/StringUtils.swift +++ b/Source/Modules/ControllerModules/StringUtils.swift @@ -53,4 +53,10 @@ extension String { let arr = Array(utf16)[r].map { $0 } return String(utf16CodeUnits: arr, count: arr.count) } + + public var charComponents: [String] { map { String($0) } } +} + +extension Array where Element == String.Element { + public var charComponents: [String] { map { String($0) } } }