Latest 0.1.0
Homepage https://github.com/midnightSuyama/Masu-Swift
License MIT
Platforms ios 8.0, requires ARC
Authors

CI Status
Version
License
Platform

Placeholder for iOS prototyping with Swift

Screenshot

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

import Masu_Swift

// UIView demo
let masu = Masu(frame: CGRectMake(0, 300, 220, 100))
masu.backgroundColor = UIColor(red: 0, green: 0.5, blue: 0.5, alpha: 1)
masu.text            = "View"
self.view.addSubview(masu)

// UIImage demo
let btn = UIButton.buttonWithType(UIButtonType.Custom) as! UIButton
btn.frame = CGRectMake(220, 300, 100, 100)
btn.setImage(Masu.imageWithSize(btn.frame.size, backgroundColor: UIColor.grayColor(), labelText: "Button"), forState: UIControlState.Normal)
self.view.addSubview(btn)

Category

view.showMasu()

Installation

Masu is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "Masu-Swift"

Author

midnightSuyama, [email protected]

License

Masu is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Masu-Swift",
    "version": "0.1.0",
    "summary": "Placeholder for iOS prototyping with Swift",
    "homepage": "https://github.com/midnightSuyama/Masu-Swift",
    "screenshots": "https://raw.githubusercontent.com/midnightSuyama/Masu-Swift/master/screenshot.png",
    "license": "MIT",
    "authors": {
        "midnightSuyama": "[email protected]"
    },
    "source": {
        "git": "https://github.com/midnightSuyama/Masu-Swift.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*"
}

Pin It on Pinterest

Share This