Kroma:SwiftUI的颜色助手集合

时间:2021-05-23 14:50:09
【文件属性】:
文件名称:Kroma:SwiftUI的颜色助手集合
文件大小:164KB
文件格式:ZIP
更新时间:2021-05-23 14:50:09
Swift 克罗马 :red_square: :green_square: :blue_square: SwiftUI的颜色扩展和实用程序的集合。 安装 Swift软件包管理器(独立) 在您的Package.swift文件中添加Korma作为依赖项: dependencies : [ ... . package ( url : " https://github.com/kaishin/Kroma.git " , from : " 0.1.0 " ) ] Swift软件包管理器(Xcode) 在Xcode项目的Swift Packages选项卡中将https://github.com/kaishin/Kroma.git添加为依赖项。 用法 检查颜色组件 Color. purple . rgbComponents // -> (0.68, 0.32, 0.87) 转换为其他表示形式 Color. purple . rgbComponents . toHSB
【文件预览】:
Kroma-main
----.gitignore(53B)
----Sources()
--------Kroma()
----Makefile(19B)
----.swiftpm()
--------xcode()
----LICENSE(1KB)
----.github()
--------workflows()
----README.md(2KB)
----logo.png(132KB)
----Package.swift(979B)
----Tests()
--------KromaTests()
----lighter-darker.png(20KB)

网友评论