A custom animated UIButton for iOS that toggles between on and off states with smooth visual feedback.
OnOffButton is a custom animated UIButton for iOS, written in Swift, that toggles between on and off states with a smooth, visually engaging animation. It provides an alternative to standard UISwitch controls, offering enhanced visual feedback and easy customization for iOS app interfaces.
iOS developers building apps that require polished, animated toggle buttons, particularly those using Swift and Interface Builder for UI design.
Developers choose OnOffButton for its ready-to-use, aesthetically pleasing toggle animation, IBDesignable support for live previews, and simple integration via CocoaPods, Carthage, or manual file inclusion.
On & Off by Creativedash
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 fluid, visually engaging transitions between states, inspired by a Creative Dash design, which enhances user interaction compared to standard UISwitch.
Fully configurable within Interface Builder with live previews, allowing visual design and property adjustment without writing code, as shown in the README screenshots.
Offers adjustable line width, stroke color, and ring transparency for easy UI integration, enabling customization to match app aesthetics.
Consists of a single Swift file, supported by CocoaPods, Carthage, or manual copy, minimizing overhead and simplifying addition to projects.
Not compatible with SwiftUI, making it unsuitable for modern iOS projects adopting Apple's newer UI framework without additional wrapping code.
Focuses solely on basic toggle animation; lacks advanced capabilities like haptic feedback, custom gestures, or built-in accessibility enhancements beyond standard UIButton.
README references tags for Swift 3 and 2.3, indicating potential maintenance issues and lack of updates for current Swift versions, which could lead to compatibility problems.