Popularity
2.2
Growing
Activity
0.0
Stable
68
6
16

Programming language: Swift
License: MIT License
Tags: UI     Switch    
Latest version: v3.0

MJMaterialSwitch alternatives and similar libraries

Based on the "Switch" category.
Alternatively, view MJMaterialSwitch alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of MJMaterialSwitch or a related project?

Add another 'Switch' Library

README

MJMaterialSwitch

Overview

MJMaterialSwitch is google's material design like switch UI with animation features.

This library has cool and sophisticated animations, ripple effect and bounce effect. Also, customizable properties can be tweaked behaviors and enhance your application UI cool.

With this library, you can easily implement material design switch to your app.

Usage

The simplest setup:

let androidSwitchSmall = MJMaterialSwitch(withSize: .small, style: MJMaterialSwitchStyle.light, state: MJMaterialSwitchState.on)
self.androidSwitchSmall.delegate = self
self.view.addSubview(self.androidSwitchSmall)

This is the simplest and easiest initialization. The style, size and initial state of MJMaterialSwitch instance is set to all default value as shown below.

Customize Behaviors

MJMaterialSwitch has many prateters to customize behaviors as you like.

Style and size

//MARK: - Switch type
public enum MJMaterialSwitchStyle {
    case light, dark, medium
}
//MARK: - Initial MJMaterialSwitch size (big, normal, small)
public enum MJMaterialSwitchSize {
    case big, normal, small
}

Author

Jaleel Nazir [email protected] paypal

License

MJMaterialSwitch is available under the MIT license.


*Note that all licence references and agreements mentioned in the MJMaterialSwitch README section above are relevant to that project's source code only.