SpinButton
class SpinButton : UIButton
Spin button located at the center of the fotune wheel view. Optional and can be hidden.
-
-
-
Setups auto layouts with preferences
Declaration
Swift
func setupAutoLayout(with preferences: SFWConfiguration.SpinButtonPreferences?)
Parameters
preferences
Spin button preferences, that contains layouts preference variables.
-
Updates spin button image
Declaration
Swift
func image(name: String?)
Parameters
name
Image name from assets catalog
-
Updates spin button background image
Declaration
Swift
func backgroundImage(name: String?)
Parameters
name
Image name from assets catalog
-
Updates spin button background color and layer
Declaration
Swift
func configure(with preferences: SFWConfiguration.SpinButtonPreferences?)
Parameters
preferences
Preferences that contains appearance preference variables.