Different ways to check for String prefix in Swift

You can use the hasPrefix(_:) method to test whether a string begins with the specified prefix. Read more

Similar