So I am trying to take thee first index of a string (fullName) and test it to see if it matches all vowels lower and uppercased... for some reason when I use the .startIndex I test one letter at a time with a If statement.
Ia there a way to test all vowels at once ()I tried || in between each and it gave me the error "cannot convert string to Bool". Appreciate any help.
func lyricsForName(lyricsTemplate: String, fullName: String) -> String {
let shortName = shortNameFromName(name: fullName)
let index = fullName[fullName.startIndex]
if index== ("a","A"){
let lyrics = lyricsTemplate
.replacingOccurrences(of:"<FULL_NAME>", with: fullName)
.replacingOccurrences (of:"<SHORT_NAME>", with: fullName )
return lyrics
}else{
let lyrics = lyricsTemplate
.replacingOccurrences(of:"<FULL_NAME>", with: fullName)
.replacingOccurrences (of:"<SHORT_NAME>", with: shortName )
return lyrics
if String(fullName.characters.prefix(1)).uppercased() == "A"