Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/midnightsuyama/masu-swift
Placeholder for iOS prototyping with Swift
https://github.com/midnightsuyama/masu-swift
Last synced: about 1 month ago
JSON representation
Placeholder for iOS prototyping with Swift
- Host: GitHub
- URL: https://github.com/midnightsuyama/masu-swift
- Owner: midnightSuyama
- License: mit
- Created: 2015-07-27T16:01:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-28T18:56:07.000Z (about 9 years ago)
- Last Synced: 2024-11-18T04:43:35.672Z (about 1 month ago)
- Language: Swift
- Size: 324 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Masu-Swift
[![CI Status](http://img.shields.io/travis/midnightSuyama/Masu-Swift.svg?style=flat)](https://travis-ci.org/midnightSuyama/Masu-Swift)
[![Version](https://img.shields.io/cocoapods/v/Masu-Swift.svg?style=flat)](http://cocoadocs.org/docsets/Masu-Swift)
[![License](https://img.shields.io/cocoapods/l/Masu-Swift.svg?style=flat)](http://cocoadocs.org/docsets/Masu-Swift)
[![Platform](https://img.shields.io/cocoapods/p/Masu-Swift.svg?style=flat)](http://cocoadocs.org/docsets/Masu-Swift)Placeholder for iOS prototyping with Swift
![Screenshot](./screenshot.png)
## Usage
To run the example project, clone the repo, and run `pod install` from the Example directory first.
``` swift
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
``` swift
view.showMasu()
```## Installation
Masu is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:``` ruby
pod "Masu-Swift"
```## Author
midnightSuyama, [email protected]
## License
Masu is available under the MIT license. See the LICENSE file for more info.