iOS Swift - User Input and Forms
What will happen if you try to assign a String to an Int property in a Swift struct for form data?
struct FormData {
var age: Int
}
var data = FormData(age: 25)
data.age = "thirty"
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions