What's needed to get this code running? Hi, I already have this part of code. It searches in an array of struct and delivers - if found - the index of that item:
for index in 0 ..< gSteering.count {
if gSteering[index].Ext == fileExtension.uppercaseString {
priority = index
break
}
}
I'm sure, that there is are shoreter and more elegant way in SWIFT using library functions. Any hints?