A radio button UI component for iOS built in Swift.
RadioButton
- A subclass of
UIButton. The radio button circle is simply drawn on top of the button. The size of the circle will fit the frame of the button while maintaining its aspect ratio.
This project can be installed in different ways:
- Manual
- Download the project
- Simply copy the
RadioButton.swiftto your project
- Framework
- Download the project
- Build the RadioButton framework
- Embed the framework into your project
- Carthage
RadioButton can be used in two different ways:
- Interface Builder
- Simply change the class of the
UIButtontoRadioButton.
- Simply change the class of the
- Code
- Use the initializer:
init(frame: CGRect)
- Use the initializer:
You can run the example app located in the same project to see how it's used.
Copyright (c) 2015 Joe Christopher Paul Amanse
This software is distributed under the MIT License.
