To run the example project, clone the repo, and run pod install
from the Example directory first.
MOOImageButton is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'MOOImageButton', '0.1.0'
pod install
import MOOImageButton
let button = MOOImageButton(imagePosition: .top, imgTitleMargin: 6.0)
button.setTitle("top image", for: .normal)
button.setImage(UIImage(named: "moo_like"), for: .normal)
button.frame = CGRect(x: 50.0, y: 100.0, width: 100.0, height: 100.0)
view.addSubview(button)
MOOImageButton is available under the MIT license. See the LICENSE file for more info.