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