private var titleTextFieldStyle: TextFieldStyle {
get {
isEditing ? RoundedBorderTextFieldStyle() : DefaultTextFieldStyle()
}
}
What is the correct way to return a style using the ternary operator and compute concept. What I am doing wrong here?
This is pseudo-code, but if I understand correctly you could do soothing like this: