如果您 neither CocoaPods 还是 Swift Package Manager,可以下载整个项目然后将所有源文件导入到您的项目中使用。
使用方法
声明
// The frame is default to zero. You need to use AutoLayout to resize it. // Otherwise, you can specify the frame in initializer.if#available(iOS13.0, *) {
// This is the new initializer for iOS 13 dark/light mode. // The syste colors will be used.
btnLoading =LoadingButton(text: "Button", buttonStyle: .outline) // Outlined button
btnLoading =LoadingButton(text: "Button", buttonStyle: .fill) // Filled button
} else {
// Custom color initializer
btnLoading =LoadingButton(text: "Button", textColor: .black, bgColor: .white)
}