SwiftColorPicker:在 Swift 中实现的用于 iOS 设备的类似 Photoshop 的颜色选择器

时间:2021-07-03 12:53:21
【文件属性】:
文件名称:SwiftColorPicker:在 Swift 中实现的用于 iOS 设备的类似 Photoshop 的颜色选择器
文件大小:85KB
文件格式:ZIP
更新时间:2021-07-03 12:53:21
Swift 快速颜色选择器 在 Swift 中实现的 iOS 设备的类似 Photoshop 的颜色选择器。 ##How 使用:在您的应用程序中包含 SwiftColorPicker 非常简单。 ###Learning 克隆 repo,在 Xcode 中打开项目,然后打开 Main.stroyboard 以查看如何使用 ColorPicker。 您会注意到 ViewController 有一个与 ColorPicker 类关联的子视图,并且 ViewController 有一个 @IBOutlet 对 ColorPicker UIView 的引用。 接下来打开 ViewController.swift,你会注意到在 viewDidLoad 方法中调用了 ColorPicker.setColor(color: UIColor)。 这允许您指定 ColorPicker 最初应显示为所选颜色的颜色(否则
【文件预览】:
SwiftColorPicker-master
----LICENSE(1KB)
----README.md(1KB)
----SwiftColorPickerTests()
--------Info.plist(755B)
--------SwiftColorPickerTests.swift(941B)
----SwiftColorPicker.xcodeproj()
--------project.xcworkspace()
--------xcuserdata()
--------project.pbxproj(19KB)
----SwiftColorPicker()
--------ViewController.swift(820B)
--------Info.plist(1KB)
--------AppDelegate.swift(2KB)
--------images()
--------lib()
--------Base.lproj()
--------Images.xcassets()

网友评论