A customizable iOS radio button control with smooth selection/deselection animations.
LTHRadioButton is an open-source iOS radio button control that provides animated selection/deselection transitions with customizable visual properties. It solves the problem of bland, static radio buttons in iOS apps by offering smooth animations and easy integration through multiple installation methods.
iOS developers building applications that require radio button inputs with enhanced visual feedback and customization options beyond standard UIKit controls.
Developers choose LTHRadioButton for its polished animations out of the box, simple integration via Swift Package Manager or CocoaPods, and flexible customization options for colors, sizing, and gesture handling without complex setup.
A radio button with a pretty animation
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides animated transitions for selection and deselection with configurable parameters like `animated: Bool`, enhancing user experience with polished visual feedback as shown in the example GIF.
Allows adjustment of selectedColor and deselectedColor with sensible defaults, making it simple to match app themes, as demonstrated in the initialization with optional parameters.
Supports Swift Package Manager, CocoaPods, and manual integration, with clear instructions for Xcode 11 and above, catering to various project setups and dependency preferences.
Includes built-in tap gesture recognition with the option to disable it via `useTapGestureRecognizer`, offering control over user interaction without unnecessary overhead.
Internally does not use Auto Layout, forcing developers to set constraints based on frame properties, which can be cumbersome and error-prone in dynamic interfaces, as admitted in the README.
The README makes no mention of accessibility properties or VoiceOver support, making it less suitable for inclusive apps that require robust accessibility compliance.
Designed solely for UIKit and not compatible with SwiftUI, limiting its use in newer iOS projects that are adopting SwiftUI as the primary framework.