A customizable iOS7-style drop-in replacement for UISwitch with support for Swift and Objective-C.
SevenSwitch is an open-source iOS UI control that provides a customizable, iOS7-style toggle switch as a drop-in replacement for the standard UISwitch. It solves the limitation of Apple's native switch by allowing extensive visual customization—including colors, images, text, and sizing—while maintaining full compatibility with iOS event systems.
iOS developers building apps that require branded or highly customized toggle switches beyond the default UISwitch appearance.
Developers choose SevenSwitch for its balance of aesthetic flexibility and ease of integration, offering pixel-perfect iOS7 design with extensive customization options without sacrificing native control behavior.
iOS7 style drop in replacement for UISwitch
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports custom colors, images, text labels, and non-rounded styles, as shown in the README with examples like setting offImage, onImage, and thumbTintColor.
Allows resizing the switch frame to any dimensions, enabling fatter or skinnier controls, demonstrated with frame adjustment in the code snippets.
Written in Swift but fully usable in Objective-C projects, ensuring compatibility across mixed-language iOS codebases, with examples provided in the README.
Serves as a drop-in replacement for UISwitch with minimal code changes, generating standard UIControlEvents.valueChanged events for seamless adoption.
Replicates the iOS7 switch design, which may not align with current iOS design trends and lacks native support for newer features like haptic feedback or system themes.
Built for UIKit and does not support SwiftUI, limiting its use in modern iOS projects that adopt SwiftUI's declarative syntax without additional wrappers.
If not using Cocoapods, developers must manually add the Swift file and QuartzCore framework, adding steps and potential errors to integration.