OOPer,
Found the issue. It had to do with a typo within my "guard" segments. I was missing the selectedRow2 on the second guard statement. Thanks again for the help!
Changed it to:
let selectedRow = picker.selectedRow(inComponent: 0)
guard data.indices.contains(selectedRow) else {
print("selectedRow invalid")
return
}
fv = data[selectedRow].fv
let selectedRow2 = pickerCyl.selectedRow(inComponent: 0)
guard data2.indices.contains(selectedRow2) else {
print("selectedRow invalid")
return
}
Topic:
Programming Languages
SubTopic:
Swift
Tags: