Palette-iOS:就像iOS的Android Palette。 写在斯威夫特

时间:2021-05-15 12:54:36
【文件属性】:
文件名称:Palette-iOS:就像iOS的Android Palette。 写在斯威夫特
文件大小:55KB
文件格式:ZIP
更新时间:2021-05-15 12:54:36
Swift 调色板-iOS 就像iOS的 。 用Swift编写并与Objective-C兼容从任何视图(继承UIView的任何视图)中,到另一个视图的特定点都会获得对比色(黑色或白色)。 屏幕截图 如何安装 椰子足 pod "Palette" 如何使用 在斯威夫特 let palette = Palette(background:self.view, forView:self.label) self.label.textColor = palette.getContrastingColor() 或者 self.label.textColor = Palette.getContrastingColor(self.view, forView: self.label) 在Objective-C中 Palette * palette = [[Palette alloc] initWithBackgr
【文件预览】:
Palette-iOS-master
----.travis.yml(193B)
----Example Objective-C()
--------main.m(355B)
--------AppDelegate.h(298B)
--------AppDelegate.m(2KB)
--------Base.lproj()
--------ViewController.h(251B)
--------Images.xcassets()
--------Info.plist(1KB)
--------ViewController.m(872B)
----Example()
--------ViewController.swift(2KB)
--------Base.lproj()
--------AppDelegate.swift(3KB)
--------Images.xcassets()
--------Info.plist(1KB)
----screenshots()
--------white.png(24KB)
--------red.png(23KB)
--------gray.png(22KB)
----Palette()
--------Palette-iOS.h(1KB)
--------Info.plist(825B)
--------Palette.swift(4KB)
--------UIView+ColorAtPoint.swift(2KB)
----LICENSE(1KB)
----PaletteTests()
--------ViewController.swift(2KB)
--------PaletteTests.swift(2KB)
--------Info.plist(752B)
----Palette-iOS.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(32KB)
--------xcshareddata()
----Palette.podspec(6KB)
----.gitignore(729B)
----README.md(1KB)
----Palette-iOS.xcworkspace()
--------contents.xcworkspacedata(157B)

网友评论