Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. SevenSwitch

SevenSwitch

MITSwift2.1.0

A customizable iOS7-style drop-in replacement for UISwitch with support for Swift and Objective-C.

GitHubGitHub
773 stars191 forks0 contributors

What is SevenSwitch?

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.

Target Audience

iOS developers building apps that require branded or highly customized toggle switches beyond the default UISwitch appearance.

Value Proposition

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.

Overview

iOS7 style drop in replacement for UISwitch

Use Cases

Best For

  • Creating branded toggle switches with custom colors and icons
  • Implementing non-standard switch sizes (e.g., wider or taller toggles)
  • Adding text labels directly onto switch controls
  • Maintaining iOS7 design language in newer iOS versions
  • Quickly replacing UISwitch with enhanced styling options
  • Projects requiring Swift/Objective-C interoperability for UI components

Not Ideal For

  • Apps targeting iOS versions below 8.0, as SevenSwitch requires iOS 8.0 or higher
  • Projects built exclusively with SwiftUI that prefer native components over UIKit drop-ins
  • Teams needing automatic dark mode adaptation or advanced accessibility features beyond basic customization
  • Developers seeking a switch with modern iOS design language beyond the iOS7 aesthetic

Pros & Cons

Pros

Highly Customizable

Supports custom colors, images, text labels, and non-rounded styles, as shown in the README with examples like setting offImage, onImage, and thumbTintColor.

Flexible Sizing

Allows resizing the switch frame to any dimensions, enabling fatter or skinnier controls, demonstrated with frame adjustment in the code snippets.

Swift/Objective-C Interoperability

Written in Swift but fully usable in Objective-C projects, ensuring compatibility across mixed-language iOS codebases, with examples provided in the README.

Easy Integration

Serves as a drop-in replacement for UISwitch with minimal code changes, generating standard UIControlEvents.valueChanged events for seamless adoption.

Cons

Outdated Design Basis

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.

UIKit-Only Limitation

Built for UIKit and does not support SwiftUI, limiting its use in modern iOS projects that adopt SwiftUI's declarative syntax without additional wrappers.

Manual Setup Complexity

If not using Cocoapods, developers must manually add the Swift file and QuartzCore framework, adding steps and potential errors to integration.

Frequently Asked Questions

Quick Stats

Stars773
Forks191
Contributors0
Open Issues5
Last commit7 years ago
CreatedSince 2013

Tags

#ios#objective-c#toggle-switch#custom-ui#cocoapods#swift#ui-controls#drop-in-replacement#ios-ui

Built With

Q
QuartzCore
S
Swift

Included in

iOS51.7k
Auto-fetched 9 hours ago

Related Projects

RAMPaperSwitchRAMPaperSwitch

: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

Stars2,908
Forks223
Last commit4 years ago
AIFlatSwitchAIFlatSwitch

Nicely animated flat design switch alternative to UISwitch

Stars967
Forks61
Last commit4 years ago
TKSwitcherCollectionTKSwitcherCollection

An animation switch collection

Stars919
Forks88
Last commit1 year ago
ViralSwitchViralSwitch

A UISwitch that infects its superview with its tint color.

Stars331
Forks25
Last commit7 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub