Add test workflow.
A UIButton subclass that makes it easy to use UIColor as the background and border color for different button states.
UIButton
UIColor
For installation with Swift Package Manager, simply add the following to your Package.swift:
Package.swift
.package(url: "https://github.com/lipka/Button", from: "0.1.0")
You can call setBorderColor(_:, for:) to set the background color for different UIControl.States.
setBorderColor(_:, for:)
UIControl.State
import Button let button = Button() button.setBackgroundColor(UIColor.red, for: .normal) button.setBackgroundColor(UIColor.blue, for: .highlighted)
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)
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Button
A
UIButton
subclass that makes it easy to useUIColor
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
:Usage
Background Color
You can call
setBorderColor(_:, for:)
to set the background color for differentUIControl.State
s.Border Color
You can call
setBorderColor(_:, for:)
to set the border color for differentUIControl.State
s.