A Swift material design UI switch that paints over its parent view when turned on.
RAMPaperSwitch is a Swift library that provides a custom UISwitch component for iOS applications. It implements Material Design by painting over the parent view with a selected color when the switch is turned on, creating a visually cohesive animation. It solves the problem of making toggle interactions more engaging and integrated with the surrounding UI.
iOS developers building applications that follow Material Design principles or seek enhanced visual feedback for toggle switches. It's particularly useful for those creating custom UI components or improving user experience in mobile apps.
Developers choose RAMPaperSwitch for its easy integration as a drop-in UISwitch replacement, its unique paint-over animation that visually connects the switch to its context, and its adherence to Material Design standards, offering a polished alternative to standard iOS switches.
:octocat: 🎚 RAMPaperSwitch is a Swift material design UI module which paints over the parent view when the switch is turned on. iOS library by @Ramotion
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Designed as a direct substitute for UISwitch, requiring minimal code changes as stated in the README, making integration straightforward.
Allows adjustment of animation duration beyond the default, giving developers control over the visual speed of the paint-over effect.
Supports animating nearby views like labels using closures, enabling cohesive UI feedback as demonstrated in the code example.
Implements Google's Material Design principles, providing a polished and modern look for iOS applications that follow this visual language.
Requires iOS 8.0 or higher, excluding support for older devices and apps that need backward compatibility with earlier iOS versions.
The paint-over animation is specific to Material Design and may not suit all UI contexts, potentially interfering with other visual elements.
Built solely for UIKit, lacking native compatibility with SwiftUI, which adds complexity for modern iOS projects using Apple's latest framework.