You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The properties below can be set in Interface Builder, in code, or through a UIAppearance proxy (e.g., RadioGroup.appearance().titleColor = .red).
When using SwiftUI you can set them in the RadioGroupPicker initializer, or use as view modifiers (e.g., .buttonSize(32)). .
Layout:
radioGroup.isVertical =false // default is true => buttons are stacked vertically
radioGroup.titleAlignment =.right
radioGroup.isButtonAfterTitle =true // default is false => button left (leading) relative to title
Color and Font:
radioGroup.tintColor =.green // surrounding ring
radioGroup.selectedColor =.red // inner circle (default is same color as ring)
radioGroup.selectedTintColor =.blue // selected radio button's surrounding ring (default is tintColor)
radioGroup.titleColor =.blue
radioGroup.titleFont = myFont
radioGroup.buttonSize =42.0
radioGroup.spacing =12 // spacing between buttons
radioGroup.itemSpacing =12 // horizontal spacing between button and title
Button appearance:
RadioButton.appearance().size =32 // height=width of button
RadioButton.appearance().ringWidth =3RadioButton.appearance().ringSpacing =7 // space between outer ring and inner circle
RadioButton.appearance().selectedColor =.blue // color of inner circle