MJMaterialSwitch alternatives and similar libraries
Based on the "Switch" category.
Alternatively, view MJMaterialSwitch alternatives based on common mentions on social networks and blogs.
-
paper-switch
: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 -
Switch
๐ An iOS switch control implemented in Swift with full Interface Builder support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of MJMaterialSwitch or a related project?
Popular Comparisons
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]
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.