在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):nghialv/MaterialKit开源软件地址(OpenSource Url):https://github.com/nghialv/MaterialKit开源编程语言(OpenSource Language):Swift 99.4%开源软件介绍(OpenSource Introduction):MaterialKitNOTE: This project is unmaintained.Material design components (inspired by Google Material Design) for iOS written in Swift Please feel free to make pull requests. Features
ComponentsMKButton
let button = MKButton(frame: CGRect(x: 10, y: 10, width: 100, height: 35))
button.maskEnabled = true
button.rippleLocation = .TapLocation
button.rippleLayerColor = UIColor.MKColor.LightGreen MKTextField
textField.rippleLocation = .Left
textField.floatingPlaceholderEnabled = true
textField.placeholder = "Description"
textField.layer.borderColor = UIColor.MKColor.Green.CGColor
textField.rippleLayerColor = UIColor.MKColor.LightGreen MKTableViewCell
var cell = tableView.dequeueReusableCellWithIdentifier("MyCell") as MyCell
cell.rippleLocation = .Center
cell.rippleLayerColor = UIColor.MKColor.Blue MKRefreshControl
var refreshControl = MKRefreshControl()
refreshControl.addToScrollView(self.tableView, withRefreshBlock: { () -> Void in
self.tableViewRefresh()
})
refreshControl.beginRefreshing() MKImageView (BarButtonItem), MKActivityIndicator
// customize UIBarButtonItem by using MKImageView
let imgView = MKImageView(frame: CGRect(x: 0, y: 0, width: 44, height: 32))
imgView.image = UIImage(named: "uibaritem_icon.png")
imgView.rippleLocation = .Center
imgView.userInteractionEnabled = true
let rightBarButton = UIBarButtonItem(customView: imgView)
self.navigationItem.rightBarButtonItem = rightBarButton
MKLayerA subclass of CALayer. MKColorA category for UIColor that adds some methods to get flat colors designed by Google // get color from UIColor
let lightBlueColor = UIColor.MKColor.LightBlue MKNavigationBarA custom UINavigationBar which supports elevation and adding a tint above itself
MKSwitchOn/off switches toggle the state of a single settings option. The option that the switch controls, as well as the state it’s in, should be made clear from the corresponding inline label. Switches take on the same visual properties of the radio button. Installation
Requirements
LicenseMaterialKit is released under the MIT license. See LICENSE for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论