To run the example project, clone the repo, and run
pod install from the Example directory first.
MHSoftUI is available through CocoaPods. To install it, simply add the following line to your Podfile:
self.view.backgroundColor = UIColor(red: 241/255, green: 243/255, blue: 246/255, alpha: 1.0)
import MHSoftUI where needed.
Simply call this method with your view object for standard SoftUI Effect:
let myButton = MHSoftUIButton()
There are parameters to each method that will let you customize the effect of SoftUI:
someButton.addSoftUIEffectForButton(cornerRadius: someButton.bounds.height/2, themeColor: UIColor(red: 241/255, green: 243/255, blue: 246/255, alpha: 1.0))
Mumtaz Hussain, firstname.lastname@example.org
MHSoftUI is available under the MIT license. See the LICENSE file for more info.