In Swift, can you split a string by another string, not just a character? August 18, 2023 by Tarik import Foundation let inputString = "This123Is123A123Test" let splits = inputString.components(separatedBy: "123")