目录

Button

Version Build Status Swift Version

A UIButton subclass that makes it easy to use UIColor as the background and border color for different button states.

Installation

Swift Package Manager

For installation with Swift Package Manager, simply add the following to your Package.swift:

.package(url: "https://github.com/lipka/Button", from: "0.1.0")

Usage

Background Color

You can call setBorderColor(_:, for:) to set the background color for different UIControl.States.

import Button

let button = Button()
button.setBackgroundColor(UIColor.red, for: .normal)
button.setBackgroundColor(UIColor.blue, for: .highlighted)

Border Color

You can call setBorderColor(_:, for:) to set the border color for different UIControl.States.

import Button

let button = Button()
button.setBorderColor(UIColor.red, for: .normal)
button.setBorderColor(UIColor.blue, for: .highlighted)
关于
34.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号