Commit 64d0eaea by Daniel Dahan

development: fixed issue where result was causing a warning issue-528

parent ccd546c8
...@@ -59,7 +59,8 @@ public typealias AnimationDelayCancelBlock = (Bool) -> Void ...@@ -59,7 +59,8 @@ public typealias AnimationDelayCancelBlock = (Bool) -> Void
public struct Animation { public struct Animation {
/// Delay helper method. /// Delay helper method.
public static func delay(time: TimeInterval, completion: @escaping () -> Void) -> AnimationDelayCancelBlock { @discardableResult
public static func delay(time: TimeInterval, completion: @escaping () -> Void) -> AnimationDelayCancelBlock? {
func asyncAfter(completion: @escaping () -> Void) { func asyncAfter(completion: @escaping () -> Void) {
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + time, execute: completion) DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + time, execute: completion)
...@@ -80,7 +81,7 @@ public struct Animation { ...@@ -80,7 +81,7 @@ public struct Animation {
cancelable?(false) cancelable?(false)
} }
return delayed; return cancelable;
} }
/** /**
...@@ -127,7 +128,7 @@ public struct Animation { ...@@ -127,7 +128,7 @@ public struct Animation {
:name: animateWithDelay :name: animateWithDelay
*/ */
public static func animateWithDelay(delay d: CFTimeInterval, duration: CFTimeInterval, animations: @escaping (() -> Void), completion: (() -> Void)? = nil) { public static func animateWithDelay(delay d: CFTimeInterval, duration: CFTimeInterval, animations: @escaping (() -> Void), completion: (() -> Void)? = nil) {
_ = delay(time: d) { delay(time: d) {
animateWithDuration(duration: duration, animations: animations, completion: completion) animateWithDuration(duration: duration, animations: animations, completion: completion)
} }
} }
......
...@@ -109,7 +109,7 @@ open class BottomTabBar: UITabBar { ...@@ -109,7 +109,7 @@ open class BottomTabBar: UITabBar {
super.didMoveToSuperview() super.didMoveToSuperview()
if isAlignedToParentAutomatically { if isAlignedToParentAutomatically {
if let v = superview { if let v = superview {
_ = v.layout(self).bottom().horizontally() v.layout(self).bottom().horizontally()
} }
} }
} }
......
...@@ -180,7 +180,7 @@ open class Button: UIButton { ...@@ -180,7 +180,7 @@ open class Button: UIButton {
open func pulse(point: CGPoint? = nil) { open func pulse(point: CGPoint? = nil) {
let p = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point! let p = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point!
Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation) Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation)
_ = Animation.delay(time: 0.35) { [weak self] in Animation.delay(time: 0.35) { [weak self] in
guard let s = self else { guard let s = self else {
return return
} }
......
...@@ -568,7 +568,7 @@ open class Capture: View, UIGestureRecognizerDelegate { ...@@ -568,7 +568,7 @@ open class Capture: View, UIGestureRecognizerDelegate {
} }
v.transform = CATransform3DMakeScale(0.5, 0.5, 1) v.transform = CATransform3DMakeScale(0.5, 0.5, 1)
}) { }) {
_ = Animation.delay(time: 0.4) { [weak layer] in Animation.delay(time: 0.4) { [weak layer] in
Animation.animationDisabled { [weak layer] in Animation.animationDisabled { [weak layer] in
guard let v = layer else { guard let v = layer else {
return return
......
...@@ -286,7 +286,7 @@ open class Card: PulseView { ...@@ -286,7 +286,7 @@ open class Card: PulseView {
verticalFormat += "-[titleLabel]" verticalFormat += "-[titleLabel]"
views["titleLabel"] = v views["titleLabel"] = v
_ = layout(v).horizontally(left: contentInset.left + titleLabelInset.left, right: contentInset.right + titleLabelInset.right) layout(v).horizontally(left: contentInset.left + titleLabelInset.left, right: contentInset.right + titleLabelInset.right)
} }
// detail // detail
...@@ -301,7 +301,7 @@ open class Card: PulseView { ...@@ -301,7 +301,7 @@ open class Card: PulseView {
verticalFormat += "-[contentView]" verticalFormat += "-[contentView]"
views["contentView"] = v views["contentView"] = v
_ = layout(v).horizontally(left: contentInset.left + contentViewInset.left, right: contentInset.right + contentViewInset.right) layout(v).horizontally(left: contentInset.left + contentViewInset.left, right: contentInset.right + contentViewInset.right)
} }
// leftButtons // leftButtons
...@@ -322,7 +322,7 @@ open class Card: PulseView { ...@@ -322,7 +322,7 @@ open class Card: PulseView {
h += "[\(k)]" h += "[\(k)]"
_ = layout(b).bottom(contentInset.bottom + leftButtonsInset.bottom) layout(b).bottom(contentInset.bottom + leftButtonsInset.bottom)
i += 1 i += 1
} }
...@@ -349,7 +349,7 @@ open class Card: PulseView { ...@@ -349,7 +349,7 @@ open class Card: PulseView {
h += "-(right_left)-" h += "-(right_left)-"
} }
_ = layout(b).bottom(contentInset.bottom + rightButtonsInset.bottom) layout(b).bottom(contentInset.bottom + rightButtonsInset.bottom)
i -= 1 i -= 1
} }
......
...@@ -217,7 +217,7 @@ open class MaterialCollectionReusableView: UICollectionReusableView { ...@@ -217,7 +217,7 @@ open class MaterialCollectionReusableView: UICollectionReusableView {
open func pulse(point: CGPoint? = nil) { open func pulse(point: CGPoint? = nil) {
let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point! let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point!
Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation) Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation)
_ = Animation.delay(time: 0.35) { [weak self] in Animation.delay(time: 0.35) { [weak self] in
guard let s = self else { guard let s = self else {
return return
} }
......
...@@ -227,7 +227,7 @@ open class CollectionViewCell: UICollectionViewCell { ...@@ -227,7 +227,7 @@ open class CollectionViewCell: UICollectionViewCell {
open func pulse(point: CGPoint? = nil) { open func pulse(point: CGPoint? = nil) {
let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point! let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point!
Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation) Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation)
_ = Animation.delay(time: 0.35) { [weak self] in Animation.delay(time: 0.35) { [weak self] in
guard let s = self else { guard let s = self else {
return return
} }
......
...@@ -30,361 +30,361 @@ ...@@ -30,361 +30,361 @@
import UIKit import UIKit
public struct Color { public class Color {
// clear // clear
public static let clear: UIColor = UIColor.clear public static let clear = UIColor.clear
// white // white
public static let white: UIColor = UIColor.white public static let white = UIColor.white
// black // black
public static let black: UIColor = UIColor.black public static let black = UIColor.black
// dark text // dark text
public struct darkText { public struct darkText {
public static let primary: UIColor = Color.black.withAlphaComponent(0.87) public static let primary = Color.black.withAlphaComponent(0.87)
public static let secondary: UIColor = Color.black.withAlphaComponent(0.54) public static let secondary = Color.black.withAlphaComponent(0.54)
public static let others: UIColor = Color.black.withAlphaComponent(0.38) public static let others = Color.black.withAlphaComponent(0.38)
public static let dividers: UIColor = Color.black.withAlphaComponent(0.12) public static let dividers = Color.black.withAlphaComponent(0.12)
} }
// light text // light text
public struct lightText { public struct lightText {
public static let primary: UIColor = Color.white public static let primary = Color.white
public static let secondary: UIColor = Color.white.withAlphaComponent(0.7) public static let secondary = Color.white.withAlphaComponent(0.7)
public static let others: UIColor = Color.white.withAlphaComponent(0.5) public static let others = Color.white.withAlphaComponent(0.5)
public static let dividers: UIColor = Color.white.withAlphaComponent(0.12) public static let dividers = Color.white.withAlphaComponent(0.12)
} }
// red // red
public struct red { public struct red {
public static let lighten5: UIColor = UIColor(red: 255/255, green: 235/255, blue: 238/255, alpha: 1) public static let lighten5 = UIColor(red: 255/255, green: 235/255, blue: 238/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 255/255, green: 205/255, blue: 210/255, alpha: 1) public static let lighten4 = UIColor(red: 255/255, green: 205/255, blue: 210/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 239/255, green: 154/255, blue: 154/255, alpha: 1) public static let lighten3 = UIColor(red: 239/255, green: 154/255, blue: 154/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 229/255, green: 115/255, blue: 115/255, alpha: 1) public static let lighten2 = UIColor(red: 229/255, green: 115/255, blue: 115/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 229/255, green: 83/255, blue: 80/255, alpha: 1) public static let lighten1 = UIColor(red: 229/255, green: 83/255, blue: 80/255, alpha: 1)
public static let base: UIColor = UIColor(red: 244/255, green: 67/255, blue: 54/255, alpha: 1) public static let base = UIColor(red: 244/255, green: 67/255, blue: 54/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 229/255, green: 57/255, blue: 53/255, alpha: 1) public static let darken1 = UIColor(red: 229/255, green: 57/255, blue: 53/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 211/255, green: 47/255, blue: 47/255, alpha: 1) public static let darken2 = UIColor(red: 211/255, green: 47/255, blue: 47/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 198/255, green: 40/255, blue: 40/255, alpha: 1) public static let darken3 = UIColor(red: 198/255, green: 40/255, blue: 40/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 183/255, green: 28/255, blue: 28/255, alpha: 1) public static let darken4 = UIColor(red: 183/255, green: 28/255, blue: 28/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 255/255, green: 138/255, blue: 128/255, alpha: 1) public static let accent1 = UIColor(red: 255/255, green: 138/255, blue: 128/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 255/255, green: 82/255, blue: 82/255, alpha: 1) public static let accent2 = UIColor(red: 255/255, green: 82/255, blue: 82/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 255/255, green: 23/255, blue: 68/255, alpha: 1) public static let accent3 = UIColor(red: 255/255, green: 23/255, blue: 68/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 213/255, green: 0/255, blue: 0/255, alpha: 1) public static let accent4 = UIColor(red: 213/255, green: 0/255, blue: 0/255, alpha: 1)
} }
// pink // pink
public struct pink { public struct pink {
public static let lighten5: UIColor = UIColor(red: 252/255, green: 228/255, blue: 236/255, alpha: 1) public static let lighten5 = UIColor(red: 252/255, green: 228/255, blue: 236/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 248/255, green: 187/255, blue: 208/255, alpha: 1) public static let lighten4 = UIColor(red: 248/255, green: 187/255, blue: 208/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 244/255, green: 143/255, blue: 177/255, alpha: 1) public static let lighten3 = UIColor(red: 244/255, green: 143/255, blue: 177/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 240/255, green: 98/255, blue: 146/255, alpha: 1) public static let lighten2 = UIColor(red: 240/255, green: 98/255, blue: 146/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 236/255, green: 64/255, blue: 122/255, alpha: 1) public static let lighten1 = UIColor(red: 236/255, green: 64/255, blue: 122/255, alpha: 1)
public static let base: UIColor = UIColor(red: 233/255, green: 30/255, blue: 99/255, alpha: 1) public static let base = UIColor(red: 233/255, green: 30/255, blue: 99/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 216/255, green: 27/255, blue: 96/255, alpha: 1) public static let darken1 = UIColor(red: 216/255, green: 27/255, blue: 96/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 194/255, green: 24/255, blue: 91/255, alpha: 1) public static let darken2 = UIColor(red: 194/255, green: 24/255, blue: 91/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 173/255, green: 20/255, blue: 87/255, alpha: 1) public static let darken3 = UIColor(red: 173/255, green: 20/255, blue: 87/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 136/255, green: 14/255, blue: 79/255, alpha: 1) public static let darken4 = UIColor(red: 136/255, green: 14/255, blue: 79/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 255/255, green: 128/255, blue: 171/255, alpha: 1) public static let accent1 = UIColor(red: 255/255, green: 128/255, blue: 171/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 255/255, green: 64/255, blue: 129/255, alpha: 1) public static let accent2 = UIColor(red: 255/255, green: 64/255, blue: 129/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 245/255, green: 0/255, blue: 87/255, alpha: 1) public static let accent3 = UIColor(red: 245/255, green: 0/255, blue: 87/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 197/255, green: 17/255, blue: 98/255, alpha: 1) public static let accent4 = UIColor(red: 197/255, green: 17/255, blue: 98/255, alpha: 1)
} }
// purple // purple
public struct purple { public struct purple {
public static let lighten5: UIColor = UIColor(red: 243/255, green: 229/255, blue: 245/255, alpha: 1) public static let lighten5 = UIColor(red: 243/255, green: 229/255, blue: 245/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 225/255, green: 190/255, blue: 231/255, alpha: 1) public static let lighten4 = UIColor(red: 225/255, green: 190/255, blue: 231/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 206/255, green: 147/255, blue: 216/255, alpha: 1) public static let lighten3 = UIColor(red: 206/255, green: 147/255, blue: 216/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 186/255, green: 104/255, blue: 200/255, alpha: 1) public static let lighten2 = UIColor(red: 186/255, green: 104/255, blue: 200/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 171/255, green: 71/255, blue: 188/255, alpha: 1) public static let lighten1 = UIColor(red: 171/255, green: 71/255, blue: 188/255, alpha: 1)
public static let base: UIColor = UIColor(red: 156/255, green: 39/255, blue: 176/255, alpha: 1) public static let base = UIColor(red: 156/255, green: 39/255, blue: 176/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 142/255, green: 36/255, blue: 170/255, alpha: 1) public static let darken1 = UIColor(red: 142/255, green: 36/255, blue: 170/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 123/255, green: 31/255, blue: 162/255, alpha: 1) public static let darken2 = UIColor(red: 123/255, green: 31/255, blue: 162/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 106/255, green: 27/255, blue: 154/255, alpha: 1) public static let darken3 = UIColor(red: 106/255, green: 27/255, blue: 154/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 74/255, green: 20/255, blue: 140/255, alpha: 1) public static let darken4 = UIColor(red: 74/255, green: 20/255, blue: 140/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 234/255, green: 128/255, blue: 252/255, alpha: 1) public static let accent1 = UIColor(red: 234/255, green: 128/255, blue: 252/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 224/255, green: 64/255, blue: 251/255, alpha: 1) public static let accent2 = UIColor(red: 224/255, green: 64/255, blue: 251/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 213/255, green: 0/255, blue: 249/255, alpha: 1) public static let accent3 = UIColor(red: 213/255, green: 0/255, blue: 249/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 170/255, green: 0/255, blue: 255/255, alpha: 1) public static let accent4 = UIColor(red: 170/255, green: 0/255, blue: 255/255, alpha: 1)
} }
// deepPurple // deepPurple
public struct deepPurple { public struct deepPurple {
public static let lighten5: UIColor = UIColor(red: 237/255, green: 231/255, blue: 246/255, alpha: 1) public static let lighten5 = UIColor(red: 237/255, green: 231/255, blue: 246/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 209/255, green: 196/255, blue: 233/255, alpha: 1) public static let lighten4 = UIColor(red: 209/255, green: 196/255, blue: 233/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 179/255, green: 157/255, blue: 219/255, alpha: 1) public static let lighten3 = UIColor(red: 179/255, green: 157/255, blue: 219/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 149/255, green: 117/255, blue: 205/255, alpha: 1) public static let lighten2 = UIColor(red: 149/255, green: 117/255, blue: 205/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 126/255, green: 87/255, blue: 194/255, alpha: 1) public static let lighten1 = UIColor(red: 126/255, green: 87/255, blue: 194/255, alpha: 1)
public static let base: UIColor = UIColor(red: 103/255, green: 58/255, blue: 183/255, alpha: 1) public static let base = UIColor(red: 103/255, green: 58/255, blue: 183/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 94/255, green: 53/255, blue: 177/255, alpha: 1) public static let darken1 = UIColor(red: 94/255, green: 53/255, blue: 177/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 81/255, green: 45/255, blue: 168/255, alpha: 1) public static let darken2 = UIColor(red: 81/255, green: 45/255, blue: 168/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 69/255, green: 39/255, blue: 160/255, alpha: 1) public static let darken3 = UIColor(red: 69/255, green: 39/255, blue: 160/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 49/255, green: 27/255, blue: 146/255, alpha: 1) public static let darken4 = UIColor(red: 49/255, green: 27/255, blue: 146/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 179/255, green: 136/255, blue: 255/255, alpha: 1) public static let accent1 = UIColor(red: 179/255, green: 136/255, blue: 255/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 124/255, green: 77/255, blue: 255/255, alpha: 1) public static let accent2 = UIColor(red: 124/255, green: 77/255, blue: 255/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 101/255, green: 31/255, blue: 255/255, alpha: 1) public static let accent3 = UIColor(red: 101/255, green: 31/255, blue: 255/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 98/255, green: 0/255, blue: 234/255, alpha: 1) public static let accent4 = UIColor(red: 98/255, green: 0/255, blue: 234/255, alpha: 1)
} }
// indigo // indigo
public struct indigo { public struct indigo {
public static let lighten5: UIColor = UIColor(red: 232/255, green: 234/255, blue: 246/255, alpha: 1) public static let lighten5 = UIColor(red: 232/255, green: 234/255, blue: 246/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 197/255, green: 202/255, blue: 233/255, alpha: 1) public static let lighten4 = UIColor(red: 197/255, green: 202/255, blue: 233/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 159/255, green: 168/255, blue: 218/255, alpha: 1) public static let lighten3 = UIColor(red: 159/255, green: 168/255, blue: 218/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 121/255, green: 134/255, blue: 203/255, alpha: 1) public static let lighten2 = UIColor(red: 121/255, green: 134/255, blue: 203/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 92/255, green: 107/255, blue: 192/255, alpha: 1) public static let lighten1 = UIColor(red: 92/255, green: 107/255, blue: 192/255, alpha: 1)
public static let base: UIColor = UIColor(red: 63/255, green: 81/255, blue: 181/255, alpha: 1) public static let base = UIColor(red: 63/255, green: 81/255, blue: 181/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 57/255, green: 73/255, blue: 171/255, alpha: 1) public static let darken1 = UIColor(red: 57/255, green: 73/255, blue: 171/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 48/255, green: 63/255, blue: 159/255, alpha: 1) public static let darken2 = UIColor(red: 48/255, green: 63/255, blue: 159/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 40/255, green: 53/255, blue: 147/255, alpha: 1) public static let darken3 = UIColor(red: 40/255, green: 53/255, blue: 147/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 26/255, green: 35/255, blue: 126/255, alpha: 1) public static let darken4 = UIColor(red: 26/255, green: 35/255, blue: 126/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 140/255, green: 158/255, blue: 255/255, alpha: 1) public static let accent1 = UIColor(red: 140/255, green: 158/255, blue: 255/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 83/255, green: 109/255, blue: 254/255, alpha: 1) public static let accent2 = UIColor(red: 83/255, green: 109/255, blue: 254/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 61/255, green: 90/255, blue: 254/255, alpha: 1) public static let accent3 = UIColor(red: 61/255, green: 90/255, blue: 254/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 48/255, green: 79/255, blue: 254/255, alpha: 1) public static let accent4 = UIColor(red: 48/255, green: 79/255, blue: 254/255, alpha: 1)
} }
// blue // blue
public struct blue { public struct blue {
public static let lighten5: UIColor = UIColor(red: 227/255, green: 242/255, blue: 253/255, alpha: 1) public static let lighten5 = UIColor(red: 227/255, green: 242/255, blue: 253/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 187/255, green: 222/255, blue: 251/255, alpha: 1) public static let lighten4 = UIColor(red: 187/255, green: 222/255, blue: 251/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 144/255, green: 202/255, blue: 249/255, alpha: 1) public static let lighten3 = UIColor(red: 144/255, green: 202/255, blue: 249/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 100/255, green: 181/255, blue: 246/255, alpha: 1) public static let lighten2 = UIColor(red: 100/255, green: 181/255, blue: 246/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 66/255, green: 165/255, blue: 245/255, alpha: 1) public static let lighten1 = UIColor(red: 66/255, green: 165/255, blue: 245/255, alpha: 1)
public static let base: UIColor = UIColor(red: 33/255, green: 150/255, blue: 243/255, alpha: 1) public static let base = UIColor(red: 33/255, green: 150/255, blue: 243/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 30/255, green: 136/255, blue: 229/255, alpha: 1) public static let darken1 = UIColor(red: 30/255, green: 136/255, blue: 229/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 25/255, green: 118/255, blue: 210/255, alpha: 1) public static let darken2 = UIColor(red: 25/255, green: 118/255, blue: 210/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 21/255, green: 101/255, blue: 192/255, alpha: 1) public static let darken3 = UIColor(red: 21/255, green: 101/255, blue: 192/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 13/255, green: 71/255, blue: 161/255, alpha: 1) public static let darken4 = UIColor(red: 13/255, green: 71/255, blue: 161/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 130/255, green: 177/255, blue: 255/255, alpha: 1) public static let accent1 = UIColor(red: 130/255, green: 177/255, blue: 255/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 68/255, green: 138/255, blue: 255/255, alpha: 1) public static let accent2 = UIColor(red: 68/255, green: 138/255, blue: 255/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 41/255, green: 121/255, blue: 255/255, alpha: 1) public static let accent3 = UIColor(red: 41/255, green: 121/255, blue: 255/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 41/255, green: 98/255, blue: 255/255, alpha: 1) public static let accent4 = UIColor(red: 41/255, green: 98/255, blue: 255/255, alpha: 1)
} }
// light blue // light blue
public struct lightBlue { public struct lightBlue {
public static let lighten5: UIColor = UIColor(red: 225/255, green: 245/255, blue: 254/255, alpha: 1) public static let lighten5 = UIColor(red: 225/255, green: 245/255, blue: 254/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 179/255, green: 229/255, blue: 252/255, alpha: 1) public static let lighten4 = UIColor(red: 179/255, green: 229/255, blue: 252/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 129/255, green: 212/255, blue: 250/255, alpha: 1) public static let lighten3 = UIColor(red: 129/255, green: 212/255, blue: 250/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 79/255, green: 195/255, blue: 247/255, alpha: 1) public static let lighten2 = UIColor(red: 79/255, green: 195/255, blue: 247/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 41/255, green: 182/255, blue: 246/255, alpha: 1) public static let lighten1 = UIColor(red: 41/255, green: 182/255, blue: 246/255, alpha: 1)
public static let base: UIColor = UIColor(red: 3/255, green: 169/255, blue: 244/255, alpha: 1) public static let base = UIColor(red: 3/255, green: 169/255, blue: 244/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 3/255, green: 155/255, blue: 229/255, alpha: 1) public static let darken1 = UIColor(red: 3/255, green: 155/255, blue: 229/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 2/255, green: 136/255, blue: 209/255, alpha: 1) public static let darken2 = UIColor(red: 2/255, green: 136/255, blue: 209/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 2/255, green: 119/255, blue: 189/255, alpha: 1) public static let darken3 = UIColor(red: 2/255, green: 119/255, blue: 189/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 1/255, green: 87/255, blue: 155/255, alpha: 1) public static let darken4 = UIColor(red: 1/255, green: 87/255, blue: 155/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 128/255, green: 216/255, blue: 255/255, alpha: 1) public static let accent1 = UIColor(red: 128/255, green: 216/255, blue: 255/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 64/255, green: 196/255, blue: 255/255, alpha: 1) public static let accent2 = UIColor(red: 64/255, green: 196/255, blue: 255/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 0/255, green: 176/255, blue: 255/255, alpha: 1) public static let accent3 = UIColor(red: 0/255, green: 176/255, blue: 255/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 0/255, green: 145/255, blue: 234/255, alpha: 1) public static let accent4 = UIColor(red: 0/255, green: 145/255, blue: 234/255, alpha: 1)
} }
// cyan // cyan
public struct cyan { public struct cyan {
public static let lighten5: UIColor = UIColor(red: 224/255, green: 247/255, blue: 250/255, alpha: 1) public static let lighten5 = UIColor(red: 224/255, green: 247/255, blue: 250/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 178/255, green: 235/255, blue: 242/255, alpha: 1) public static let lighten4 = UIColor(red: 178/255, green: 235/255, blue: 242/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 128/255, green: 222/255, blue: 234/255, alpha: 1) public static let lighten3 = UIColor(red: 128/255, green: 222/255, blue: 234/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 77/255, green: 208/255, blue: 225/255, alpha: 1) public static let lighten2 = UIColor(red: 77/255, green: 208/255, blue: 225/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 38/255, green: 198/255, blue: 218/255, alpha: 1) public static let lighten1 = UIColor(red: 38/255, green: 198/255, blue: 218/255, alpha: 1)
public static let base: UIColor = UIColor(red: 0/255, green: 188/255, blue: 212/255, alpha: 1) public static let base = UIColor(red: 0/255, green: 188/255, blue: 212/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 0/255, green: 172/255, blue: 193/255, alpha: 1) public static let darken1 = UIColor(red: 0/255, green: 172/255, blue: 193/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 0/255, green: 151/255, blue: 167/255, alpha: 1) public static let darken2 = UIColor(red: 0/255, green: 151/255, blue: 167/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 0/255, green: 131/255, blue: 143/255, alpha: 1) public static let darken3 = UIColor(red: 0/255, green: 131/255, blue: 143/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 0/255, green: 96/255, blue: 100/255, alpha: 1) public static let darken4 = UIColor(red: 0/255, green: 96/255, blue: 100/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 132/255, green: 255/255, blue: 255/255, alpha: 1) public static let accent1 = UIColor(red: 132/255, green: 255/255, blue: 255/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 24/255, green: 255/255, blue: 255/255, alpha: 1) public static let accent2 = UIColor(red: 24/255, green: 255/255, blue: 255/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 0/255, green: 229/255, blue: 255/255, alpha: 1) public static let accent3 = UIColor(red: 0/255, green: 229/255, blue: 255/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 0/255, green: 184/255, blue: 212/255, alpha: 1) public static let accent4 = UIColor(red: 0/255, green: 184/255, blue: 212/255, alpha: 1)
} }
// teal // teal
public struct teal { public struct teal {
public static let lighten5: UIColor = UIColor(red: 224/255, green: 242/255, blue: 241/255, alpha: 1) public static let lighten5 = UIColor(red: 224/255, green: 242/255, blue: 241/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 178/255, green: 223/255, blue: 219/255, alpha: 1) public static let lighten4 = UIColor(red: 178/255, green: 223/255, blue: 219/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 128/255, green: 203/255, blue: 196/255, alpha: 1) public static let lighten3 = UIColor(red: 128/255, green: 203/255, blue: 196/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 77/255, green: 182/255, blue: 172/255, alpha: 1) public static let lighten2 = UIColor(red: 77/255, green: 182/255, blue: 172/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 38/255, green: 166/255, blue: 154/255, alpha: 1) public static let lighten1 = UIColor(red: 38/255, green: 166/255, blue: 154/255, alpha: 1)
public static let base: UIColor = UIColor(red: 0/255, green: 150/255, blue: 136/255, alpha: 1) public static let base = UIColor(red: 0/255, green: 150/255, blue: 136/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 0/255, green: 137/255, blue: 123/255, alpha: 1) public static let darken1 = UIColor(red: 0/255, green: 137/255, blue: 123/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 0/255, green: 121/255, blue: 107/255, alpha: 1) public static let darken2 = UIColor(red: 0/255, green: 121/255, blue: 107/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 0/255, green: 105/255, blue: 92/255, alpha: 1) public static let darken3 = UIColor(red: 0/255, green: 105/255, blue: 92/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 0/255, green: 77/255, blue: 64/255, alpha: 1) public static let darken4 = UIColor(red: 0/255, green: 77/255, blue: 64/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 167/255, green: 255/255, blue: 235/255, alpha: 1) public static let accent1 = UIColor(red: 167/255, green: 255/255, blue: 235/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 100/255, green: 255/255, blue: 218/255, alpha: 1) public static let accent2 = UIColor(red: 100/255, green: 255/255, blue: 218/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 29/255, green: 233/255, blue: 182/255, alpha: 1) public static let accent3 = UIColor(red: 29/255, green: 233/255, blue: 182/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 0/255, green: 191/255, blue: 165/255, alpha: 1) public static let accent4 = UIColor(red: 0/255, green: 191/255, blue: 165/255, alpha: 1)
} }
// green // green
public struct green { public struct green {
public static let lighten5: UIColor = UIColor(red: 232/255, green: 245/255, blue: 233/255, alpha: 1) public static let lighten5 = UIColor(red: 232/255, green: 245/255, blue: 233/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 200/255, green: 230/255, blue: 201/255, alpha: 1) public static let lighten4 = UIColor(red: 200/255, green: 230/255, blue: 201/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 165/255, green: 214/255, blue: 167/255, alpha: 1) public static let lighten3 = UIColor(red: 165/255, green: 214/255, blue: 167/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 129/255, green: 199/255, blue: 132/255, alpha: 1) public static let lighten2 = UIColor(red: 129/255, green: 199/255, blue: 132/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 102/255, green: 187/255, blue: 106/255, alpha: 1) public static let lighten1 = UIColor(red: 102/255, green: 187/255, blue: 106/255, alpha: 1)
public static let base: UIColor = UIColor(red: 76/255, green: 175/255, blue: 80/255, alpha: 1) public static let base = UIColor(red: 76/255, green: 175/255, blue: 80/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 67/255, green: 160/255, blue: 71/255, alpha: 1) public static let darken1 = UIColor(red: 67/255, green: 160/255, blue: 71/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 56/255, green: 142/255, blue: 60/255, alpha: 1) public static let darken2 = UIColor(red: 56/255, green: 142/255, blue: 60/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 46/255, green: 125/255, blue: 50/255, alpha: 1) public static let darken3 = UIColor(red: 46/255, green: 125/255, blue: 50/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 27/255, green: 94/255, blue: 32/255, alpha: 1) public static let darken4 = UIColor(red: 27/255, green: 94/255, blue: 32/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 185/255, green: 246/255, blue: 202/255, alpha: 1) public static let accent1 = UIColor(red: 185/255, green: 246/255, blue: 202/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 105/255, green: 240/255, blue: 174/255, alpha: 1) public static let accent2 = UIColor(red: 105/255, green: 240/255, blue: 174/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 0/255, green: 230/255, blue: 118/255, alpha: 1) public static let accent3 = UIColor(red: 0/255, green: 230/255, blue: 118/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 0/255, green: 200/255, blue: 83/255, alpha: 1) public static let accent4 = UIColor(red: 0/255, green: 200/255, blue: 83/255, alpha: 1)
} }
// light green // light green
public struct lightGreen { public struct lightGreen {
public static let lighten5: UIColor = UIColor(red: 241/255, green: 248/255, blue: 233/255, alpha: 1) public static let lighten5 = UIColor(red: 241/255, green: 248/255, blue: 233/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 220/255, green: 237/255, blue: 200/255, alpha: 1) public static let lighten4 = UIColor(red: 220/255, green: 237/255, blue: 200/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 197/255, green: 225/255, blue: 165/255, alpha: 1) public static let lighten3 = UIColor(red: 197/255, green: 225/255, blue: 165/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 174/255, green: 213/255, blue: 129/255, alpha: 1) public static let lighten2 = UIColor(red: 174/255, green: 213/255, blue: 129/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 156/255, green: 204/255, blue: 101/255, alpha: 1) public static let lighten1 = UIColor(red: 156/255, green: 204/255, blue: 101/255, alpha: 1)
public static let base: UIColor = UIColor(red: 139/255, green: 195/255, blue: 74/255, alpha: 1) public static let base = UIColor(red: 139/255, green: 195/255, blue: 74/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 124/255, green: 179/255, blue: 66/255, alpha: 1) public static let darken1 = UIColor(red: 124/255, green: 179/255, blue: 66/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 104/255, green: 159/255, blue: 56/255, alpha: 1) public static let darken2 = UIColor(red: 104/255, green: 159/255, blue: 56/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 85/255, green: 139/255, blue: 47/255, alpha: 1) public static let darken3 = UIColor(red: 85/255, green: 139/255, blue: 47/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 51/255, green: 105/255, blue: 30/255, alpha: 1) public static let darken4 = UIColor(red: 51/255, green: 105/255, blue: 30/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 204/255, green: 255/255, blue: 144/255, alpha: 1) public static let accent1 = UIColor(red: 204/255, green: 255/255, blue: 144/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 178/255, green: 255/255, blue: 89/255, alpha: 1) public static let accent2 = UIColor(red: 178/255, green: 255/255, blue: 89/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 118/255, green: 255/255, blue: 3/255, alpha: 1) public static let accent3 = UIColor(red: 118/255, green: 255/255, blue: 3/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 100/255, green: 221/255, blue: 23/255, alpha: 1) public static let accent4 = UIColor(red: 100/255, green: 221/255, blue: 23/255, alpha: 1)
} }
// lime // lime
public struct lime { public struct lime {
public static let lighten5: UIColor = UIColor(red: 249/255, green: 251/255, blue: 231/255, alpha: 1) public static let lighten5 = UIColor(red: 249/255, green: 251/255, blue: 231/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 240/255, green: 244/255, blue: 195/255, alpha: 1) public static let lighten4 = UIColor(red: 240/255, green: 244/255, blue: 195/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 230/255, green: 238/255, blue: 156/255, alpha: 1) public static let lighten3 = UIColor(red: 230/255, green: 238/255, blue: 156/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 220/255, green: 231/255, blue: 117/255, alpha: 1) public static let lighten2 = UIColor(red: 220/255, green: 231/255, blue: 117/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 212/255, green: 225/255, blue: 87/255, alpha: 1) public static let lighten1 = UIColor(red: 212/255, green: 225/255, blue: 87/255, alpha: 1)
public static let base: UIColor = UIColor(red: 205/255, green: 220/255, blue: 57/255, alpha: 1) public static let base = UIColor(red: 205/255, green: 220/255, blue: 57/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 192/255, green: 202/255, blue: 51/255, alpha: 1) public static let darken1 = UIColor(red: 192/255, green: 202/255, blue: 51/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 175/255, green: 180/255, blue: 43/255, alpha: 1) public static let darken2 = UIColor(red: 175/255, green: 180/255, blue: 43/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 158/255, green: 157/255, blue: 36/255, alpha: 1) public static let darken3 = UIColor(red: 158/255, green: 157/255, blue: 36/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 130/255, green: 119/255, blue: 23/255, alpha: 1) public static let darken4 = UIColor(red: 130/255, green: 119/255, blue: 23/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 244/255, green: 255/255, blue: 129/255, alpha: 1) public static let accent1 = UIColor(red: 244/255, green: 255/255, blue: 129/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 238/255, green: 255/255, blue: 65/255, alpha: 1) public static let accent2 = UIColor(red: 238/255, green: 255/255, blue: 65/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 198/255, green: 255/255, blue: 0/255, alpha: 1) public static let accent3 = UIColor(red: 198/255, green: 255/255, blue: 0/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 174/255, green: 234/255, blue: 0/255, alpha: 1) public static let accent4 = UIColor(red: 174/255, green: 234/255, blue: 0/255, alpha: 1)
} }
// yellow // yellow
public struct yellow { public struct yellow {
public static let lighten5: UIColor = UIColor(red: 255/255, green: 253/255, blue: 231/255, alpha: 1) public static let lighten5 = UIColor(red: 255/255, green: 253/255, blue: 231/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 255/255, green: 249/255, blue: 196/255, alpha: 1) public static let lighten4 = UIColor(red: 255/255, green: 249/255, blue: 196/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 255/255, green: 245/255, blue: 157/255, alpha: 1) public static let lighten3 = UIColor(red: 255/255, green: 245/255, blue: 157/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 255/255, green: 241/255, blue: 118/255, alpha: 1) public static let lighten2 = UIColor(red: 255/255, green: 241/255, blue: 118/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 255/255, green: 238/255, blue: 88/255, alpha: 1) public static let lighten1 = UIColor(red: 255/255, green: 238/255, blue: 88/255, alpha: 1)
public static let base: UIColor = UIColor(red: 255/255, green: 235/255, blue: 59/255, alpha: 1) public static let base = UIColor(red: 255/255, green: 235/255, blue: 59/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 253/255, green: 216/255, blue: 53/255, alpha: 1) public static let darken1 = UIColor(red: 253/255, green: 216/255, blue: 53/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 251/255, green: 192/255, blue: 45/255, alpha: 1) public static let darken2 = UIColor(red: 251/255, green: 192/255, blue: 45/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 249/255, green: 168/255, blue: 37/255, alpha: 1) public static let darken3 = UIColor(red: 249/255, green: 168/255, blue: 37/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 245/255, green: 127/255, blue: 23/255, alpha: 1) public static let darken4 = UIColor(red: 245/255, green: 127/255, blue: 23/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 255/255, green: 255/255, blue: 141/255, alpha: 1) public static let accent1 = UIColor(red: 255/255, green: 255/255, blue: 141/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 255/255, green: 255/255, blue: 0/255, alpha: 1) public static let accent2 = UIColor(red: 255/255, green: 255/255, blue: 0/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 255/255, green: 234/255, blue: 0/255, alpha: 1) public static let accent3 = UIColor(red: 255/255, green: 234/255, blue: 0/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 255/255, green: 214/255, blue: 0/255, alpha: 1) public static let accent4 = UIColor(red: 255/255, green: 214/255, blue: 0/255, alpha: 1)
} }
// amber // amber
public struct amber { public struct amber {
public static let lighten5: UIColor = UIColor(red: 255/255, green: 248/255, blue: 225/255, alpha: 1) public static let lighten5 = UIColor(red: 255/255, green: 248/255, blue: 225/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 255/255, green: 236/255, blue: 179/255, alpha: 1) public static let lighten4 = UIColor(red: 255/255, green: 236/255, blue: 179/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 255/255, green: 224/255, blue: 130/255, alpha: 1) public static let lighten3 = UIColor(red: 255/255, green: 224/255, blue: 130/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 255/255, green: 213/255, blue: 79/255, alpha: 1) public static let lighten2 = UIColor(red: 255/255, green: 213/255, blue: 79/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 255/255, green: 202/255, blue: 40/255, alpha: 1) public static let lighten1 = UIColor(red: 255/255, green: 202/255, blue: 40/255, alpha: 1)
public static let base: UIColor = UIColor(red: 255/255, green: 193/255, blue: 7/255, alpha: 1) public static let base = UIColor(red: 255/255, green: 193/255, blue: 7/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 255/255, green: 179/255, blue: 0/255, alpha: 1) public static let darken1 = UIColor(red: 255/255, green: 179/255, blue: 0/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 255/255, green: 160/255, blue: 0/255, alpha: 1) public static let darken2 = UIColor(red: 255/255, green: 160/255, blue: 0/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 255/255, green: 143/255, blue: 0/255, alpha: 1) public static let darken3 = UIColor(red: 255/255, green: 143/255, blue: 0/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 255/255, green: 111/255, blue: 0/255, alpha: 1) public static let darken4 = UIColor(red: 255/255, green: 111/255, blue: 0/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 255/255, green: 229/255, blue: 127/255, alpha: 1) public static let accent1 = UIColor(red: 255/255, green: 229/255, blue: 127/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 255/255, green: 215/255, blue: 64/255, alpha: 1) public static let accent2 = UIColor(red: 255/255, green: 215/255, blue: 64/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 255/255, green: 196/255, blue: 0/255, alpha: 1) public static let accent3 = UIColor(red: 255/255, green: 196/255, blue: 0/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 255/255, green: 171/255, blue: 0/255, alpha: 1) public static let accent4 = UIColor(red: 255/255, green: 171/255, blue: 0/255, alpha: 1)
} }
// orange // orange
public struct orange { public struct orange {
public static let lighten5: UIColor = UIColor(red: 255/255, green: 243/255, blue: 224/255, alpha: 1) public static let lighten5 = UIColor(red: 255/255, green: 243/255, blue: 224/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 255/255, green: 224/255, blue: 178/255, alpha: 1) public static let lighten4 = UIColor(red: 255/255, green: 224/255, blue: 178/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 255/255, green: 204/255, blue: 128/255, alpha: 1) public static let lighten3 = UIColor(red: 255/255, green: 204/255, blue: 128/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 255/255, green: 183/255, blue: 77/255, alpha: 1) public static let lighten2 = UIColor(red: 255/255, green: 183/255, blue: 77/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 255/255, green: 167/255, blue: 38/255, alpha: 1) public static let lighten1 = UIColor(red: 255/255, green: 167/255, blue: 38/255, alpha: 1)
public static let base: UIColor = UIColor(red: 255/255, green: 152/255, blue: 0/255, alpha: 1) public static let base = UIColor(red: 255/255, green: 152/255, blue: 0/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 251/255, green: 140/255, blue: 0/255, alpha: 1) public static let darken1 = UIColor(red: 251/255, green: 140/255, blue: 0/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 245/255, green: 124/255, blue: 0/255, alpha: 1) public static let darken2 = UIColor(red: 245/255, green: 124/255, blue: 0/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 239/255, green: 108/255, blue: 0/255, alpha: 1) public static let darken3 = UIColor(red: 239/255, green: 108/255, blue: 0/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 230/255, green: 81/255, blue: 0/255, alpha: 1) public static let darken4 = UIColor(red: 230/255, green: 81/255, blue: 0/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 255/255, green: 209/255, blue: 128/255, alpha: 1) public static let accent1 = UIColor(red: 255/255, green: 209/255, blue: 128/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 255/255, green: 171/255, blue: 64/255, alpha: 1) public static let accent2 = UIColor(red: 255/255, green: 171/255, blue: 64/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 255/255, green: 145/255, blue: 0/255, alpha: 1) public static let accent3 = UIColor(red: 255/255, green: 145/255, blue: 0/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 255/255, green: 109/255, blue: 0/255, alpha: 1) public static let accent4 = UIColor(red: 255/255, green: 109/255, blue: 0/255, alpha: 1)
} }
// deep orange // deep orange
public struct deepOrange { public struct deepOrange {
public static let lighten5: UIColor = UIColor(red: 251/255, green: 233/255, blue: 231/255, alpha: 1) public static let lighten5 = UIColor(red: 251/255, green: 233/255, blue: 231/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 255/255, green: 204/255, blue: 188/255, alpha: 1) public static let lighten4 = UIColor(red: 255/255, green: 204/255, blue: 188/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 255/255, green: 171/255, blue: 145/255, alpha: 1) public static let lighten3 = UIColor(red: 255/255, green: 171/255, blue: 145/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 255/255, green: 138/255, blue: 101/255, alpha: 1) public static let lighten2 = UIColor(red: 255/255, green: 138/255, blue: 101/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 255/255, green: 112/255, blue: 67/255, alpha: 1) public static let lighten1 = UIColor(red: 255/255, green: 112/255, blue: 67/255, alpha: 1)
public static let base: UIColor = UIColor(red: 255/255, green: 87/255, blue: 34/255, alpha: 1) public static let base = UIColor(red: 255/255, green: 87/255, blue: 34/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 244/255, green: 81/255, blue: 30/255, alpha: 1) public static let darken1 = UIColor(red: 244/255, green: 81/255, blue: 30/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 230/255, green: 74/255, blue: 25/255, alpha: 1) public static let darken2 = UIColor(red: 230/255, green: 74/255, blue: 25/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 216/255, green: 67/255, blue: 21/255, alpha: 1) public static let darken3 = UIColor(red: 216/255, green: 67/255, blue: 21/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 191/255, green: 54/255, blue: 12/255, alpha: 1) public static let darken4 = UIColor(red: 191/255, green: 54/255, blue: 12/255, alpha: 1)
public static let accent1: UIColor = UIColor(red: 255/255, green: 158/255, blue: 128/255, alpha: 1) public static let accent1 = UIColor(red: 255/255, green: 158/255, blue: 128/255, alpha: 1)
public static let accent2: UIColor = UIColor(red: 255/255, green: 110/255, blue: 64/255, alpha: 1) public static let accent2 = UIColor(red: 255/255, green: 110/255, blue: 64/255, alpha: 1)
public static let accent3: UIColor = UIColor(red: 255/255, green: 61/255, blue: 0/255, alpha: 1) public static let accent3 = UIColor(red: 255/255, green: 61/255, blue: 0/255, alpha: 1)
public static let accent4: UIColor = UIColor(red: 221/255, green: 44/255, blue: 0/255, alpha: 1) public static let accent4 = UIColor(red: 221/255, green: 44/255, blue: 0/255, alpha: 1)
} }
// brown // brown
public struct brown { public struct brown {
public static let lighten5: UIColor = UIColor(red: 239/255, green: 235/255, blue: 233/255, alpha: 1) public static let lighten5 = UIColor(red: 239/255, green: 235/255, blue: 233/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 215/255, green: 204/255, blue: 200/255, alpha: 1) public static let lighten4 = UIColor(red: 215/255, green: 204/255, blue: 200/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 188/255, green: 170/255, blue: 164/255, alpha: 1) public static let lighten3 = UIColor(red: 188/255, green: 170/255, blue: 164/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 161/255, green: 136/255, blue: 127/255, alpha: 1) public static let lighten2 = UIColor(red: 161/255, green: 136/255, blue: 127/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 141/255, green: 110/255, blue: 99/255, alpha: 1) public static let lighten1 = UIColor(red: 141/255, green: 110/255, blue: 99/255, alpha: 1)
public static let base: UIColor = UIColor(red: 121/255, green: 85/255, blue: 72/255, alpha: 1) public static let base = UIColor(red: 121/255, green: 85/255, blue: 72/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 109/255, green: 76/255, blue: 65/255, alpha: 1) public static let darken1 = UIColor(red: 109/255, green: 76/255, blue: 65/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 93/255, green: 64/255, blue: 55/255, alpha: 1) public static let darken2 = UIColor(red: 93/255, green: 64/255, blue: 55/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 78/255, green: 52/255, blue: 46/255, alpha: 1) public static let darken3 = UIColor(red: 78/255, green: 52/255, blue: 46/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 62/255, green: 39/255, blue: 35/255, alpha: 1) public static let darken4 = UIColor(red: 62/255, green: 39/255, blue: 35/255, alpha: 1)
} }
// grey // grey
public struct grey { public struct grey {
public static let lighten5: UIColor = UIColor(red: 250/255, green: 250/255, blue: 250/255, alpha: 1) public static let lighten5 = UIColor(red: 250/255, green: 250/255, blue: 250/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 245/255, green: 245/255, blue: 245/255, alpha: 1) public static let lighten4 = UIColor(red: 245/255, green: 245/255, blue: 245/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 238/255, green: 238/255, blue: 238/255, alpha: 1) public static let lighten3 = UIColor(red: 238/255, green: 238/255, blue: 238/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 224/255, green: 224/255, blue: 224/255, alpha: 1) public static let lighten2 = UIColor(red: 224/255, green: 224/255, blue: 224/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 189/255, green: 189/255, blue: 189/255, alpha: 1) public static let lighten1 = UIColor(red: 189/255, green: 189/255, blue: 189/255, alpha: 1)
public static let base: UIColor = UIColor(red: 158/255, green: 158/255, blue: 158/255, alpha: 1) public static let base = UIColor(red: 158/255, green: 158/255, blue: 158/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 117/255, green: 117/255, blue: 117/255, alpha: 1) public static let darken1 = UIColor(red: 117/255, green: 117/255, blue: 117/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 97/255, green: 97/255, blue: 97/255, alpha: 1) public static let darken2 = UIColor(red: 97/255, green: 97/255, blue: 97/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 66/255, green: 66/255, blue: 66/255, alpha: 1) public static let darken3 = UIColor(red: 66/255, green: 66/255, blue: 66/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 33/255, green: 33/255, blue: 33/255, alpha: 1) public static let darken4 = UIColor(red: 33/255, green: 33/255, blue: 33/255, alpha: 1)
} }
// blue grey // blue grey
public struct blueGrey { public struct blueGrey {
public static let lighten5: UIColor = UIColor(red: 236/255, green: 239/255, blue: 241/255, alpha: 1) public static let lighten5 = UIColor(red: 236/255, green: 239/255, blue: 241/255, alpha: 1)
public static let lighten4: UIColor = UIColor(red: 207/255, green: 216/255, blue: 220/255, alpha: 1) public static let lighten4 = UIColor(red: 207/255, green: 216/255, blue: 220/255, alpha: 1)
public static let lighten3: UIColor = UIColor(red: 176/255, green: 190/255, blue: 197/255, alpha: 1) public static let lighten3 = UIColor(red: 176/255, green: 190/255, blue: 197/255, alpha: 1)
public static let lighten2: UIColor = UIColor(red: 144/255, green: 164/255, blue: 174/255, alpha: 1) public static let lighten2 = UIColor(red: 144/255, green: 164/255, blue: 174/255, alpha: 1)
public static let lighten1: UIColor = UIColor(red: 120/255, green: 144/255, blue: 156/255, alpha: 1) public static let lighten1 = UIColor(red: 120/255, green: 144/255, blue: 156/255, alpha: 1)
public static let base: UIColor = UIColor(red: 96/255, green: 125/255, blue: 139/255, alpha: 1) public static let base = UIColor(red: 96/255, green: 125/255, blue: 139/255, alpha: 1)
public static let darken1: UIColor = UIColor(red: 84/255, green: 110/255, blue: 122/255, alpha: 1) public static let darken1 = UIColor(red: 84/255, green: 110/255, blue: 122/255, alpha: 1)
public static let darken2: UIColor = UIColor(red: 69/255, green: 90/255, blue: 100/255, alpha: 1) public static let darken2 = UIColor(red: 69/255, green: 90/255, blue: 100/255, alpha: 1)
public static let darken3: UIColor = UIColor(red: 55/255, green: 71/255, blue: 79/255, alpha: 1) public static let darken3 = UIColor(red: 55/255, green: 71/255, blue: 79/255, alpha: 1)
public static let darken4: UIColor = UIColor(red: 38/255, green: 50/255, blue: 56/255, alpha: 1) public static let darken4 = UIColor(red: 38/255, green: 50/255, blue: 56/255, alpha: 1)
} }
} }
...@@ -135,18 +135,18 @@ open class ContentCard: PulseView { ...@@ -135,18 +135,18 @@ open class ContentCard: PulseView {
if let v = titleBar { if let v = titleBar {
views["titleBar"] = v views["titleBar"] = v
format += "[titleBar]" format += "[titleBar]"
_ = layout(v).horizontally() layout(v).horizontally()
} }
views["contentView"] = contentView views["contentView"] = contentView
format += "[contentView]" format += "[contentView]"
_ = layout(contentView).horizontally() layout(contentView).horizontally()
contentView.layoutIfNeeded() contentView.layoutIfNeeded()
if let v = bottomBar { if let v = bottomBar {
views["bottomBar"] = v views["bottomBar"] = v
format += "[bottomBar]" format += "[bottomBar]"
_ = layout(v).horizontally() layout(v).horizontally()
} }
addConstraints(Layout.constraint(format: "\(format)|", options: [], metrics: nil, views: views)) addConstraints(Layout.constraint(format: "\(format)|", options: [], metrics: nil, views: views))
......
...@@ -394,9 +394,9 @@ open class ImageCard: PulseView { ...@@ -394,9 +394,9 @@ open class ImageCard: PulseView {
verticalFormat += "-[titleLabel]" verticalFormat += "-[titleLabel]"
views["titleLabel"] = v views["titleLabel"] = v
} else { } else {
_ = layout(v).top(contentInset.top + titleLabelInset.top) layout(v).top(contentInset.top + titleLabelInset.top)
} }
_ = layout(v).horizontally(left: contentInset.left + titleLabelInset.left, right: contentInset.right + titleLabelInset.right) layout(v).horizontally(left: contentInset.left + titleLabelInset.left, right: contentInset.right + titleLabelInset.right)
} }
// detail // detail
...@@ -411,7 +411,7 @@ open class ImageCard: PulseView { ...@@ -411,7 +411,7 @@ open class ImageCard: PulseView {
verticalFormat += "-[contentView]" verticalFormat += "-[contentView]"
views["contentView"] = v views["contentView"] = v
_ = layout(v).horizontally(left: contentInset.left + contentViewInset.left, right: contentInset.right + contentViewInset.right) layout(v).horizontally(left: contentInset.left + contentViewInset.left, right: contentInset.right + contentViewInset.right)
} }
// leftButtons // leftButtons
...@@ -432,7 +432,7 @@ open class ImageCard: PulseView { ...@@ -432,7 +432,7 @@ open class ImageCard: PulseView {
h += "[\(k)]" h += "[\(k)]"
_ = layout(b).bottom(contentInset.bottom + leftButtonsInset.bottom) layout(b).bottom(contentInset.bottom + leftButtonsInset.bottom)
i += 1 i += 1
} }
...@@ -459,7 +459,7 @@ open class ImageCard: PulseView { ...@@ -459,7 +459,7 @@ open class ImageCard: PulseView {
h += "-(right_left)-" h += "-(right_left)-"
} }
_ = layout(b).bottom(contentInset.bottom + rightButtonsInset.bottom) layout(b).bottom(contentInset.bottom + rightButtonsInset.bottom)
i -= 1 i -= 1
} }
......
...@@ -83,6 +83,7 @@ public class Layout { ...@@ -83,6 +83,7 @@ public class Layout {
- Parameter width: A CGFloat value. - Parameter width: A CGFloat value.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func width(_ child: UIView, width: CGFloat) -> Layout { public func width(_ child: UIView, width: CGFloat) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -97,6 +98,7 @@ public class Layout { ...@@ -97,6 +98,7 @@ public class Layout {
- Parameter width: A CGFloat value. - Parameter width: A CGFloat value.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func width(_ width: CGFloat) -> Layout { public func width(_ width: CGFloat) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -110,6 +112,7 @@ public class Layout { ...@@ -110,6 +112,7 @@ public class Layout {
- Parameter height: A CGFloat value. - Parameter height: A CGFloat value.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func height(_ child: UIView, height: CGFloat) -> Layout { public func height(_ child: UIView, height: CGFloat) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -124,6 +127,7 @@ public class Layout { ...@@ -124,6 +127,7 @@ public class Layout {
- Parameter height: A CGFloat value. - Parameter height: A CGFloat value.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func height(_ height: CGFloat) -> Layout { public func height(_ height: CGFloat) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -137,6 +141,7 @@ public class Layout { ...@@ -137,6 +141,7 @@ public class Layout {
- Parameter size: A CGSize value. - Parameter size: A CGSize value.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func size(_ child: UIView, size: CGSize) -> Layout { public func size(_ child: UIView, size: CGSize) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -151,6 +156,7 @@ public class Layout { ...@@ -151,6 +156,7 @@ public class Layout {
- Parameter size: A CGSize value. - Parameter size: A CGSize value.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func size(_ size: CGSize = CGSize.zero) -> Layout { public func size(_ size: CGSize = CGSize.zero) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -167,6 +173,7 @@ public class Layout { ...@@ -167,6 +173,7 @@ public class Layout {
- Parameter interimSpace: A CGFloat value for interim interimSpace. - Parameter interimSpace: A CGFloat value for interim interimSpace.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func horizontally(_ children: [UIView], left: CGFloat = 0, right: CGFloat = 0, interimSpace: InterimSpace = 0) -> Layout { public func horizontally(_ children: [UIView], left: CGFloat = 0, right: CGFloat = 0, interimSpace: InterimSpace = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -184,6 +191,7 @@ public class Layout { ...@@ -184,6 +191,7 @@ public class Layout {
- Parameter interimSpace: A CGFloat value for interim interimSpace. - Parameter interimSpace: A CGFloat value for interim interimSpace.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func vertically(_ children: [UIView], top: CGFloat = 0, bottom: CGFloat = 0, interimSpace: InterimSpace = 0) -> Layout { public func vertically(_ children: [UIView], top: CGFloat = 0, bottom: CGFloat = 0, interimSpace: InterimSpace = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -199,6 +207,7 @@ public class Layout { ...@@ -199,6 +207,7 @@ public class Layout {
- Parameter right: A CGFloat value for padding the right side. - Parameter right: A CGFloat value for padding the right side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func horizontally(_ child: UIView, left: CGFloat = 0, right: CGFloat = 0) -> Layout { public func horizontally(_ child: UIView, left: CGFloat = 0, right: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -214,6 +223,7 @@ public class Layout { ...@@ -214,6 +223,7 @@ public class Layout {
- Parameter right: A CGFloat value for padding the right side. - Parameter right: A CGFloat value for padding the right side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func horizontally(left: CGFloat = 0, right: CGFloat = 0) -> Layout { public func horizontally(left: CGFloat = 0, right: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -228,6 +238,7 @@ public class Layout { ...@@ -228,6 +238,7 @@ public class Layout {
- Parameter bottom: A CGFloat value for padding the bottom side. - Parameter bottom: A CGFloat value for padding the bottom side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func vertically(_ child: UIView, top: CGFloat = 0, bottom: CGFloat = 0) -> Layout { public func vertically(_ child: UIView, top: CGFloat = 0, bottom: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -243,6 +254,7 @@ public class Layout { ...@@ -243,6 +254,7 @@ public class Layout {
- Parameter bottom: A CGFloat value for padding the bottom side. - Parameter bottom: A CGFloat value for padding the bottom side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func vertically(top: CGFloat = 0, bottom: CGFloat = 0) -> Layout { public func vertically(top: CGFloat = 0, bottom: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -259,6 +271,7 @@ public class Layout { ...@@ -259,6 +271,7 @@ public class Layout {
- Parameter right: A CGFloat value for padding the right side. - Parameter right: A CGFloat value for padding the right side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func edges(_ child: UIView, top: CGFloat = 0, left: CGFloat = 0, bottom: CGFloat = 0, right: CGFloat = 0) -> Layout { public func edges(_ child: UIView, top: CGFloat = 0, left: CGFloat = 0, bottom: CGFloat = 0, right: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -277,6 +290,7 @@ public class Layout { ...@@ -277,6 +290,7 @@ public class Layout {
- Parameter right: A CGFloat value for padding the right side. - Parameter right: A CGFloat value for padding the right side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func edges(top: CGFloat = 0, left: CGFloat = 0, bottom: CGFloat = 0, right: CGFloat = 0) -> Layout { public func edges(top: CGFloat = 0, left: CGFloat = 0, bottom: CGFloat = 0, right: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -290,6 +304,7 @@ public class Layout { ...@@ -290,6 +304,7 @@ public class Layout {
- Parameter top: A CGFloat value for padding the top side. - Parameter top: A CGFloat value for padding the top side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func top(_ child: UIView, top: CGFloat = 0) -> Layout { public func top(_ child: UIView, top: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -304,6 +319,7 @@ public class Layout { ...@@ -304,6 +319,7 @@ public class Layout {
- Parameter top: A CGFloat value for padding the top side. - Parameter top: A CGFloat value for padding the top side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func top(_ top: CGFloat = 0) -> Layout { public func top(_ top: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -317,6 +333,7 @@ public class Layout { ...@@ -317,6 +333,7 @@ public class Layout {
- Parameter left: A CGFloat value for padding the left side. - Parameter left: A CGFloat value for padding the left side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func left(_ child: UIView, left: CGFloat = 0) -> Layout { public func left(_ child: UIView, left: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -331,6 +348,7 @@ public class Layout { ...@@ -331,6 +348,7 @@ public class Layout {
- Parameter left: A CGFloat value for padding the left side. - Parameter left: A CGFloat value for padding the left side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func left(_ left: CGFloat = 0) -> Layout { public func left(_ left: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -344,6 +362,7 @@ public class Layout { ...@@ -344,6 +362,7 @@ public class Layout {
- Parameter bottom: A CGFloat value for padding the bottom side. - Parameter bottom: A CGFloat value for padding the bottom side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func bottom(_ child: UIView, bottom: CGFloat = 0) -> Layout { public func bottom(_ child: UIView, bottom: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -358,6 +377,7 @@ public class Layout { ...@@ -358,6 +377,7 @@ public class Layout {
- Parameter bottom: A CGFloat value for padding the bottom side. - Parameter bottom: A CGFloat value for padding the bottom side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func bottom(_ bottom: CGFloat = 0) -> Layout { public func bottom(_ bottom: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -371,6 +391,7 @@ public class Layout { ...@@ -371,6 +391,7 @@ public class Layout {
- Parameter right: A CGFloat value for padding the right side. - Parameter right: A CGFloat value for padding the right side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func right(_ child: UIView, right: CGFloat = 0) -> Layout { public func right(_ child: UIView, right: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -385,6 +406,7 @@ public class Layout { ...@@ -385,6 +406,7 @@ public class Layout {
- Parameter right: A CGFloat value for padding the right side. - Parameter right: A CGFloat value for padding the right side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func right(_ right: CGFloat = 0) -> Layout { public func right(_ right: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -399,6 +421,7 @@ public class Layout { ...@@ -399,6 +421,7 @@ public class Layout {
- Parameter left: A CGFloat value for padding the left side. - Parameter left: A CGFloat value for padding the left side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func topLeft(_ child: UIView, top: CGFloat = 0, left: CGFloat = 0) -> Layout { public func topLeft(_ child: UIView, top: CGFloat = 0, left: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -414,6 +437,7 @@ public class Layout { ...@@ -414,6 +437,7 @@ public class Layout {
- Parameter left: A CGFloat value for padding the left side. - Parameter left: A CGFloat value for padding the left side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func topLeft(top: CGFloat = 0, left: CGFloat = 0) -> Layout { public func topLeft(top: CGFloat = 0, left: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -428,6 +452,7 @@ public class Layout { ...@@ -428,6 +452,7 @@ public class Layout {
- Parameter right: A CGFloat value for padding the right side. - Parameter right: A CGFloat value for padding the right side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func topRight(_ child: UIView, top: CGFloat = 0, right: CGFloat = 0) -> Layout { public func topRight(_ child: UIView, top: CGFloat = 0, right: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -443,6 +468,7 @@ public class Layout { ...@@ -443,6 +468,7 @@ public class Layout {
- Parameter right: A CGFloat value for padding the right side. - Parameter right: A CGFloat value for padding the right side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func topRight(top: CGFloat = 0, right: CGFloat = 0) -> Layout { public func topRight(top: CGFloat = 0, right: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -457,6 +483,7 @@ public class Layout { ...@@ -457,6 +483,7 @@ public class Layout {
- Parameter left: A CGFloat value for padding the left side. - Parameter left: A CGFloat value for padding the left side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func bottomLeft(_ child: UIView, bottom: CGFloat = 0, left: CGFloat = 0) -> Layout { public func bottomLeft(_ child: UIView, bottom: CGFloat = 0, left: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -472,6 +499,7 @@ public class Layout { ...@@ -472,6 +499,7 @@ public class Layout {
- Parameter left: A CGFloat value for padding the left side. - Parameter left: A CGFloat value for padding the left side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func bottomLeft(bottom: CGFloat = 0, left: CGFloat = 0) -> Layout { public func bottomLeft(bottom: CGFloat = 0, left: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -486,6 +514,7 @@ public class Layout { ...@@ -486,6 +514,7 @@ public class Layout {
- Parameter right: A CGFloat value for padding the right side. - Parameter right: A CGFloat value for padding the right side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func bottomRight(_ child: UIView, bottom: CGFloat = 0, right: CGFloat = 0) -> Layout { public func bottomRight(_ child: UIView, bottom: CGFloat = 0, right: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -501,6 +530,7 @@ public class Layout { ...@@ -501,6 +530,7 @@ public class Layout {
- Parameter right: A CGFloat value for padding the right side. - Parameter right: A CGFloat value for padding the right side.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func bottomRight(bottom: CGFloat = 0, right: CGFloat = 0) -> Layout { public func bottomRight(bottom: CGFloat = 0, right: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -515,6 +545,7 @@ public class Layout { ...@@ -515,6 +545,7 @@ public class Layout {
- Parameter offsetX: A CGFloat value for the offset along the y axis. - Parameter offsetX: A CGFloat value for the offset along the y axis.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func center(_ child: UIView, offsetX: CGFloat = 0, offsetY: CGFloat = 0) -> Layout { public func center(_ child: UIView, offsetX: CGFloat = 0, offsetY: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -530,6 +561,7 @@ public class Layout { ...@@ -530,6 +561,7 @@ public class Layout {
- Parameter offsetX: A CGFloat value for the offset along the y axis. - Parameter offsetX: A CGFloat value for the offset along the y axis.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func center(offsetX: CGFloat = 0, offsetY: CGFloat = 0) -> Layout { public func center(offsetX: CGFloat = 0, offsetY: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -543,6 +575,7 @@ public class Layout { ...@@ -543,6 +575,7 @@ public class Layout {
- Parameter offset: A CGFloat value for the offset along the x axis. - Parameter offset: A CGFloat value for the offset along the x axis.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func centerHorizontally(_ child: UIView, offset: CGFloat = 0) -> Layout { public func centerHorizontally(_ child: UIView, offset: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -557,6 +590,7 @@ public class Layout { ...@@ -557,6 +590,7 @@ public class Layout {
- Parameter offset: A CGFloat value for the offset along the x axis. - Parameter offset: A CGFloat value for the offset along the x axis.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func centerHorizontally(offset: CGFloat = 0) -> Layout { public func centerHorizontally(offset: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
...@@ -570,6 +604,7 @@ public class Layout { ...@@ -570,6 +604,7 @@ public class Layout {
- Parameter offset: A CGFloat value for the offset along the y axis. - Parameter offset: A CGFloat value for the offset along the y axis.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func centerVertically(_ child: UIView, offset: CGFloat = 0) -> Layout { public func centerVertically(_ child: UIView, offset: CGFloat = 0) -> Layout {
guard let v = parent else { guard let v = parent else {
return debugParentNotAvailableMessage() return debugParentNotAvailableMessage()
...@@ -584,6 +619,7 @@ public class Layout { ...@@ -584,6 +619,7 @@ public class Layout {
- Parameter offset: A CGFloat value for the offset along the y axis. - Parameter offset: A CGFloat value for the offset along the y axis.
- Returns: The current Layout instance. - Returns: The current Layout instance.
*/ */
@discardableResult
public func centerVertically(offset: CGFloat = 0) -> Layout { public func centerVertically(offset: CGFloat = 0) -> Layout {
guard let v = child else { guard let v = child else {
return debugChildNotAvailableMessage() return debugChildNotAvailableMessage()
......
...@@ -254,6 +254,7 @@ extension PhotoLibrary { ...@@ -254,6 +254,7 @@ extension PhotoLibrary {
- Parameter fetchResult: A PHFetchResult<T>. - Parameter fetchResult: A PHFetchResult<T>.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
internal func fetch<T: PHObject, U: PHFetchResult<T>>(caller: String, result: U, completion: (([T], U) -> Void)? = nil) -> [T] { internal func fetch<T: PHObject, U: PHFetchResult<T>>(caller: String, result: U, completion: (([T], U) -> Void)? = nil) -> [T] {
var objects = [T]() var objects = [T]()
...@@ -287,6 +288,7 @@ extension PhotoLibrary { ...@@ -287,6 +288,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion callback. - Parameter completion: A completion callback.
*/ */
@discardableResult
public func fetchCollectionListsContaining(_ collection: PHCollection, options: PHFetchOptions?, completion: (([PHCollectionList], PHFetchResult<PHCollectionList>) -> Void)? = nil) -> [PHCollectionList] { public func fetchCollectionListsContaining(_ collection: PHCollection, options: PHFetchOptions?, completion: (([PHCollectionList], PHFetchResult<PHCollectionList>) -> Void)? = nil) -> [PHCollectionList] {
return fetch(caller: #function, result: PHCollectionList.fetchCollectionListsContaining(collection, options: options), completion: completion) return fetch(caller: #function, result: PHCollectionList.fetchCollectionListsContaining(collection, options: options), completion: completion)
} }
...@@ -298,6 +300,7 @@ extension PhotoLibrary { ...@@ -298,6 +300,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion callback. - Parameter completion: A completion callback.
*/ */
@discardableResult
public func fetchCollectionList(with type: PHCollectionListType, subtype: PHCollectionListSubtype, options: PHFetchOptions?, completion: (([PHCollectionList], PHFetchResult<PHCollectionList>) -> Void)? = nil) -> [PHCollectionList] { public func fetchCollectionList(with type: PHCollectionListType, subtype: PHCollectionListSubtype, options: PHFetchOptions?, completion: (([PHCollectionList], PHFetchResult<PHCollectionList>) -> Void)? = nil) -> [PHCollectionList] {
return fetch(caller: #function, result: PHCollectionList.fetchCollectionLists(with: type, subtype: subtype, options: options), completion: completion) return fetch(caller: #function, result: PHCollectionList.fetchCollectionLists(with: type, subtype: subtype, options: options), completion: completion)
} }
...@@ -311,6 +314,7 @@ extension PhotoLibrary { ...@@ -311,6 +314,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion callback. - Parameter completion: A completion callback.
*/ */
@discardableResult
public func fetchCollectionLists(withLocalIdentifiers identifiers: [String], options: PHFetchOptions?, completion: (([PHCollectionList], PHFetchResult<PHCollectionList>) -> Void)? = nil) -> [PHCollectionList] { public func fetchCollectionLists(withLocalIdentifiers identifiers: [String], options: PHFetchOptions?, completion: (([PHCollectionList], PHFetchResult<PHCollectionList>) -> Void)? = nil) -> [PHCollectionList] {
return fetch(caller: #function, result: PHCollectionList.fetchCollectionLists(withLocalIdentifiers: identifiers, options: options), completion: completion) return fetch(caller: #function, result: PHCollectionList.fetchCollectionLists(withLocalIdentifiers: identifiers, options: options), completion: completion)
} }
...@@ -324,6 +328,7 @@ extension PhotoLibrary { ...@@ -324,6 +328,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion callback. - Parameter completion: A completion callback.
*/ */
@discardableResult
public func fetchCollectionLists(with collectionListType: PHCollectionListType, subtype: PHCollectionListSubtype, options: PHFetchOptions?, completion: (([PHCollectionList], PHFetchResult<PHCollectionList>) -> Void)? = nil) -> [PHCollectionList] { public func fetchCollectionLists(with collectionListType: PHCollectionListType, subtype: PHCollectionListSubtype, options: PHFetchOptions?, completion: (([PHCollectionList], PHFetchResult<PHCollectionList>) -> Void)? = nil) -> [PHCollectionList] {
return fetch(caller: #function, result: PHCollectionList.fetchCollectionLists(with: collectionListType, subtype: subtype, options: options), completion: completion) return fetch(caller: #function, result: PHCollectionList.fetchCollectionLists(with: collectionListType, subtype: subtype, options: options), completion: completion)
} }
...@@ -335,6 +340,7 @@ extension PhotoLibrary { ...@@ -335,6 +340,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion callback. - Parameter completion: A completion callback.
*/ */
@discardableResult
public func fetchMomentLists(with momentListSubtype: PHCollectionListSubtype, containingMoment moment: PHAssetCollection, options: PHFetchOptions?, completion: (([PHCollectionList], PHFetchResult<PHCollectionList>) -> Void)? = nil) -> [PHCollectionList] { public func fetchMomentLists(with momentListSubtype: PHCollectionListSubtype, containingMoment moment: PHAssetCollection, options: PHFetchOptions?, completion: (([PHCollectionList], PHFetchResult<PHCollectionList>) -> Void)? = nil) -> [PHCollectionList] {
return fetch(caller: #function, result: PHCollectionList.fetchMomentLists(with: momentListSubtype, containingMoment: moment, options: options), completion: completion) return fetch(caller: #function, result: PHCollectionList.fetchMomentLists(with: momentListSubtype, containingMoment: moment, options: options), completion: completion)
} }
...@@ -345,6 +351,7 @@ extension PhotoLibrary { ...@@ -345,6 +351,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion callback. - Parameter completion: A completion callback.
*/ */
@discardableResult
public func fetchMomentLists(with momentListSubtype: PHCollectionListSubtype, options: PHFetchOptions?, completion: (([PHCollectionList], PHFetchResult<PHCollectionList>) -> Void)? = nil) -> [PHCollectionList] { public func fetchMomentLists(with momentListSubtype: PHCollectionListSubtype, options: PHFetchOptions?, completion: (([PHCollectionList], PHFetchResult<PHCollectionList>) -> Void)? = nil) -> [PHCollectionList] {
return fetch(caller: #function, result: PHCollectionList.fetchMomentLists(with: momentListSubtype, options: options), completion: completion) return fetch(caller: #function, result: PHCollectionList.fetchMomentLists(with: momentListSubtype, options: options), completion: completion)
} }
...@@ -358,6 +365,7 @@ extension PhotoLibrary { ...@@ -358,6 +365,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion callback. - Parameter completion: A completion callback.
*/ */
@discardableResult
public func fetchCollections(in collectionList: PHCollectionList, options: PHFetchOptions?, completion: (([PHCollection], PHFetchResult<PHCollection>) -> Void)? = nil) -> [PHCollection] { public func fetchCollections(in collectionList: PHCollectionList, options: PHFetchOptions?, completion: (([PHCollection], PHFetchResult<PHCollection>) -> Void)? = nil) -> [PHCollection] {
return fetch(caller: #function, result: PHCollection.fetchCollections(in: collectionList, options: options), completion: completion) return fetch(caller: #function, result: PHCollection.fetchCollections(in: collectionList, options: options), completion: completion)
} }
...@@ -369,6 +377,7 @@ extension PhotoLibrary { ...@@ -369,6 +377,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion callback. - Parameter completion: A completion callback.
*/ */
@discardableResult
public func fetchTopLevelUserCollections(with options: PHFetchOptions?, completion: (([PHCollection], PHFetchResult<PHCollection>) -> Void)? = nil) -> [PHCollection] { public func fetchTopLevelUserCollections(with options: PHFetchOptions?, completion: (([PHCollection], PHFetchResult<PHCollection>) -> Void)? = nil) -> [PHCollection] {
return fetch(caller: #function, result: PHCollection.fetchTopLevelUserCollections(with: nil), completion: completion) return fetch(caller: #function, result: PHCollection.fetchTopLevelUserCollections(with: nil), completion: completion)
} }
...@@ -383,6 +392,7 @@ extension PhotoLibrary { ...@@ -383,6 +392,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
public func fetchAssetCollections(withLocalIdentifiers identifiers: [String], options: PHFetchOptions?, completion: (([PHAssetCollection], PHFetchResult<PHAssetCollection>) -> Void)? = nil) -> [PHAssetCollection] { public func fetchAssetCollections(withLocalIdentifiers identifiers: [String], options: PHFetchOptions?, completion: (([PHAssetCollection], PHFetchResult<PHAssetCollection>) -> Void)? = nil) -> [PHAssetCollection] {
return fetch(caller: #function, result: PHAssetCollection.fetchAssetCollections(withLocalIdentifiers: identifiers, options: options), completion: completion) return fetch(caller: #function, result: PHAssetCollection.fetchAssetCollections(withLocalIdentifiers: identifiers, options: options), completion: completion)
} }
...@@ -395,6 +405,7 @@ extension PhotoLibrary { ...@@ -395,6 +405,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
public func fetchAssetCollections(with type: PHAssetCollectionType, subtype: PHAssetCollectionSubtype, options: PHFetchOptions?, completion: (([PHAssetCollection], PHFetchResult<PHAssetCollection>) -> Void)? = nil) -> [PHAssetCollection] { public func fetchAssetCollections(with type: PHAssetCollectionType, subtype: PHAssetCollectionSubtype, options: PHFetchOptions?, completion: (([PHAssetCollection], PHFetchResult<PHAssetCollection>) -> Void)? = nil) -> [PHAssetCollection] {
return fetch(caller: #function, result: PHAssetCollection.fetchAssetCollections(with: type, subtype: subtype, options: options), completion: completion) return fetch(caller: #function, result: PHAssetCollection.fetchAssetCollections(with: type, subtype: subtype, options: options), completion: completion)
} }
...@@ -406,6 +417,7 @@ extension PhotoLibrary { ...@@ -406,6 +417,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
public func fetchAssetCollectionsContaining(_ asset: PHAsset, with type: PHAssetCollectionType, options: PHFetchOptions?, completion: (([PHAssetCollection], PHFetchResult<PHAssetCollection>) -> Void)? = nil) -> [PHAssetCollection] { public func fetchAssetCollectionsContaining(_ asset: PHAsset, with type: PHAssetCollectionType, options: PHFetchOptions?, completion: (([PHAssetCollection], PHFetchResult<PHAssetCollection>) -> Void)? = nil) -> [PHAssetCollection] {
return fetch(caller: #function, result: PHAssetCollection.fetchAssetCollectionsContaining(asset, with: type, options: options), completion: completion) return fetch(caller: #function, result: PHAssetCollection.fetchAssetCollectionsContaining(asset, with: type, options: options), completion: completion)
} }
...@@ -418,6 +430,7 @@ extension PhotoLibrary { ...@@ -418,6 +430,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
public func fetchAssetCollections(withALAssetGroupURLs assetGroupURLs: [URL], options: PHFetchOptions?, completion: (([PHAssetCollection], PHFetchResult<PHAssetCollection>) -> Void)? = nil) -> [PHAssetCollection] { public func fetchAssetCollections(withALAssetGroupURLs assetGroupURLs: [URL], options: PHFetchOptions?, completion: (([PHAssetCollection], PHFetchResult<PHAssetCollection>) -> Void)? = nil) -> [PHAssetCollection] {
return fetch(caller: #function, result: PHAssetCollection.fetchAssetCollections(withALAssetGroupURLs: assetGroupURLs, options: options), completion: completion) return fetch(caller: #function, result: PHAssetCollection.fetchAssetCollections(withALAssetGroupURLs: assetGroupURLs, options: options), completion: completion)
} }
...@@ -428,6 +441,7 @@ extension PhotoLibrary { ...@@ -428,6 +441,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
public func fetchMoments(inMomentList momentList: PHCollectionList, options: PHFetchOptions?, completion: (([PHAssetCollection], PHFetchResult<PHAssetCollection>) -> Void)? = nil) -> [PHAssetCollection] { public func fetchMoments(inMomentList momentList: PHCollectionList, options: PHFetchOptions?, completion: (([PHAssetCollection], PHFetchResult<PHAssetCollection>) -> Void)? = nil) -> [PHAssetCollection] {
return fetch(caller: #function, result: PHAssetCollection.fetchMoments(inMomentList: momentList, options: options), completion: completion) return fetch(caller: #function, result: PHAssetCollection.fetchMoments(inMomentList: momentList, options: options), completion: completion)
} }
...@@ -437,6 +451,7 @@ extension PhotoLibrary { ...@@ -437,6 +451,7 @@ extension PhotoLibrary {
- Parameter with options: An optional PHFetchOptions object. - Parameter with options: An optional PHFetchOptions object.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
public func fetchMoments(with options: PHFetchOptions?, completion: (([PHAssetCollection], PHFetchResult<PHAssetCollection>) -> Void)? = nil) -> [PHAssetCollection] { public func fetchMoments(with options: PHFetchOptions?, completion: (([PHAssetCollection], PHFetchResult<PHAssetCollection>) -> Void)? = nil) -> [PHAssetCollection] {
return fetch(caller: #function, result: PHAssetCollection.fetchMoments(with: options), completion: completion) return fetch(caller: #function, result: PHAssetCollection.fetchMoments(with: options), completion: completion)
} }
...@@ -450,6 +465,7 @@ extension PhotoLibrary { ...@@ -450,6 +465,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
public func fetchAssets(in assetCollection: PHAssetCollection, options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> [PHAsset] { public func fetchAssets(in assetCollection: PHAssetCollection, options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> [PHAsset] {
return fetch(caller: #function, result: PHAsset.fetchAssets(in: assetCollection, options: options), completion: completion) return fetch(caller: #function, result: PHAsset.fetchAssets(in: assetCollection, options: options), completion: completion)
} }
...@@ -461,6 +477,7 @@ extension PhotoLibrary { ...@@ -461,6 +477,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
public func fetchAssets(withLocalIdentifiers identifiers: [String], options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> [PHAsset] { public func fetchAssets(withLocalIdentifiers identifiers: [String], options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> [PHAsset] {
return fetch(caller: #function, result: PHAsset.fetchAssets(withLocalIdentifiers: identifiers, options: options), completion: completion) return fetch(caller: #function, result: PHAsset.fetchAssets(withLocalIdentifiers: identifiers, options: options), completion: completion)
} }
...@@ -472,6 +489,7 @@ extension PhotoLibrary { ...@@ -472,6 +489,7 @@ extension PhotoLibrary {
- Parameter completion: A completion block. - Parameter completion: A completion block.
- Returns: An optional PHFetchResult<PHAsset> object. - Returns: An optional PHFetchResult<PHAsset> object.
*/ */
@discardableResult
public func fetchKeyAssets(in assetCollection: PHAssetCollection, options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> PHFetchResult<PHAsset>? { public func fetchKeyAssets(in assetCollection: PHAssetCollection, options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> PHFetchResult<PHAsset>? {
guard let fetchResult = PHAsset.fetchKeyAssets(in: assetCollection, options: options) else { guard let fetchResult = PHAsset.fetchKeyAssets(in: assetCollection, options: options) else {
return nil return nil
...@@ -487,6 +505,7 @@ extension PhotoLibrary { ...@@ -487,6 +505,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
public func fetchAssets(withBurstIdentifier burstIdentifier: String, options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> [PHAsset] { public func fetchAssets(withBurstIdentifier burstIdentifier: String, options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> [PHAsset] {
return fetch(caller: #function, result: PHAsset.fetchAssets(withBurstIdentifier: burstIdentifier, options: options), completion: completion) return fetch(caller: #function, result: PHAsset.fetchAssets(withBurstIdentifier: burstIdentifier, options: options), completion: completion)
} }
...@@ -497,6 +516,7 @@ extension PhotoLibrary { ...@@ -497,6 +516,7 @@ extension PhotoLibrary {
- Parameter with options: An optional PHFetchOptions object. - Parameter with options: An optional PHFetchOptions object.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
public func fetchAssets(with options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> [PHAsset] { public func fetchAssets(with options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> [PHAsset] {
return fetch(caller: #function, result: PHAsset.fetchAssets(with: options), completion: completion) return fetch(caller: #function, result: PHAsset.fetchAssets(with: options), completion: completion)
} }
...@@ -507,6 +527,7 @@ extension PhotoLibrary { ...@@ -507,6 +527,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
public func fetchAssets(with mediaType: PHAssetMediaType, options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> [PHAsset] { public func fetchAssets(with mediaType: PHAssetMediaType, options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> [PHAsset] {
return fetch(caller: #function, result: PHAsset.fetchAssets(with: mediaType, options: options), completion: completion) return fetch(caller: #function, result: PHAsset.fetchAssets(with: mediaType, options: options), completion: completion)
} }
...@@ -518,6 +539,7 @@ extension PhotoLibrary { ...@@ -518,6 +539,7 @@ extension PhotoLibrary {
- Parameter options: An optional PHFetchOptions object. - Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion block. - Parameter completion: A completion block.
*/ */
@discardableResult
public func fetchAssets(withALAssetURLs assetURLs: [URL], options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> [PHAsset] { public func fetchAssets(withALAssetURLs assetURLs: [URL], options: PHFetchOptions?, completion: (([PHAsset], PHFetchResult<PHAsset>) -> Void)? = nil) -> [PHAsset] {
return fetch(caller: #function, result: PHAsset.fetchAssets(withALAssetURLs: assetURLs, options: options), completion: completion) return fetch(caller: #function, result: PHAsset.fetchAssets(withALAssetURLs: assetURLs, options: options), completion: completion)
} }
...@@ -535,6 +557,7 @@ extension PhotoLibrary { ...@@ -535,6 +557,7 @@ extension PhotoLibrary {
- Parameter completion: A completion block. - Parameter completion: A completion block.
- Returns: A PHImageRequestID. - Returns: A PHImageRequestID.
*/ */
@discardableResult
public func requestImage(for asset: PHAsset, targetSize: CGSize, contentMode: PHImageContentMode, options: PHImageRequestOptions?, completion: @escaping (UIImage?, [AnyHashable: Any]?) -> Void) -> PHImageRequestID { public func requestImage(for asset: PHAsset, targetSize: CGSize, contentMode: PHImageContentMode, options: PHImageRequestOptions?, completion: @escaping (UIImage?, [AnyHashable: Any]?) -> Void) -> PHImageRequestID {
return PHImageManager.default().requestImage(for: asset, targetSize: targetSize, contentMode: contentMode, options: options, resultHandler: completion) return PHImageManager.default().requestImage(for: asset, targetSize: targetSize, contentMode: contentMode, options: options, resultHandler: completion)
} }
...@@ -546,6 +569,7 @@ extension PhotoLibrary { ...@@ -546,6 +569,7 @@ extension PhotoLibrary {
- Parameter completion: A completion block. - Parameter completion: A completion block.
- Returns: A PHImageRequestID. - Returns: A PHImageRequestID.
*/ */
@discardableResult
public func requestImageData(for asset: PHAsset, options: PHImageRequestOptions?, completion: @escaping (Data?, String?, UIImageOrientation, [AnyHashable: Any]?) -> Void) -> PHImageRequestID { public func requestImageData(for asset: PHAsset, options: PHImageRequestOptions?, completion: @escaping (Data?, String?, UIImageOrientation, [AnyHashable: Any]?) -> Void) -> PHImageRequestID {
return PHImageManager.default().requestImageData(for: asset, options: options, resultHandler: completion) return PHImageManager.default().requestImageData(for: asset, options: options, resultHandler: completion)
} }
...@@ -574,6 +598,7 @@ extension PhotoLibrary { ...@@ -574,6 +598,7 @@ extension PhotoLibrary {
- Returns: A PHImageRequestID. - Returns: A PHImageRequestID.
*/ */
@available(iOS 9.1, *) @available(iOS 9.1, *)
@discardableResult
public func requestLivePhoto(for asset: PHAsset, targetSize: CGSize, contentMode: PHImageContentMode, options: PHLivePhotoRequestOptions?, completion: @escaping (PHLivePhoto?, [AnyHashable : Any]?) -> Void) -> PHImageRequestID { public func requestLivePhoto(for asset: PHAsset, targetSize: CGSize, contentMode: PHImageContentMode, options: PHLivePhotoRequestOptions?, completion: @escaping (PHLivePhoto?, [AnyHashable : Any]?) -> Void) -> PHImageRequestID {
return PHImageManager.default().requestLivePhoto(for: asset, targetSize: targetSize, contentMode: contentMode, options: options, resultHandler: completion) return PHImageManager.default().requestLivePhoto(for: asset, targetSize: targetSize, contentMode: contentMode, options: options, resultHandler: completion)
} }
...@@ -585,6 +610,7 @@ extension PhotoLibrary { ...@@ -585,6 +610,7 @@ extension PhotoLibrary {
- Parameter completion: A completion block. - Parameter completion: A completion block.
- Returns: A PHImageRequestID. - Returns: A PHImageRequestID.
*/ */
@discardableResult
public func requestPlayerItem(forVideo asset: PHAsset, options: PHVideoRequestOptions?, completion: @escaping (AVPlayerItem?, [AnyHashable : Any]?) -> Swift.Void) -> PHImageRequestID { public func requestPlayerItem(forVideo asset: PHAsset, options: PHVideoRequestOptions?, completion: @escaping (AVPlayerItem?, [AnyHashable : Any]?) -> Swift.Void) -> PHImageRequestID {
return PHImageManager.default().requestPlayerItem(forVideo: asset, options: options, resultHandler: completion) return PHImageManager.default().requestPlayerItem(forVideo: asset, options: options, resultHandler: completion)
} }
...@@ -596,6 +622,7 @@ extension PhotoLibrary { ...@@ -596,6 +622,7 @@ extension PhotoLibrary {
- Parameter completion: A completion block. - Parameter completion: A completion block.
- Returns: A PHImageRequestID. - Returns: A PHImageRequestID.
*/ */
@discardableResult
public func requestExportSession(forVideo asset: PHAsset, options: PHVideoRequestOptions?, exportPreset: String, completion: @escaping (AVAssetExportSession?, [AnyHashable : Any]?) -> Void) -> PHImageRequestID { public func requestExportSession(forVideo asset: PHAsset, options: PHVideoRequestOptions?, exportPreset: String, completion: @escaping (AVAssetExportSession?, [AnyHashable : Any]?) -> Void) -> PHImageRequestID {
return PHImageManager.default().requestExportSession(forVideo: asset, options: options, exportPreset: exportPreset, resultHandler: completion) return PHImageManager.default().requestExportSession(forVideo: asset, options: options, exportPreset: exportPreset, resultHandler: completion)
} }
...@@ -607,6 +634,7 @@ extension PhotoLibrary { ...@@ -607,6 +634,7 @@ extension PhotoLibrary {
- Parameter completion: A completion block. - Parameter completion: A completion block.
- Returns: A PHImageRequestID. - Returns: A PHImageRequestID.
*/ */
@discardableResult
public func requestAVAsset(forVideo asset: PHAsset, options: PHVideoRequestOptions?, completion: @escaping (AVAsset?, AVAudioMix?, [AnyHashable : Any]?) -> Void) -> PHImageRequestID { public func requestAVAsset(forVideo asset: PHAsset, options: PHVideoRequestOptions?, completion: @escaping (AVAsset?, AVAudioMix?, [AnyHashable : Any]?) -> Void) -> PHImageRequestID {
return PHImageManager.default().requestAVAsset(forVideo: asset, options: options, resultHandler: completion) return PHImageManager.default().requestAVAsset(forVideo: asset, options: options, resultHandler: completion)
} }
......
...@@ -102,7 +102,7 @@ internal extension Animation { ...@@ -102,7 +102,7 @@ internal extension Animation {
default:break default:break
} }
_ = Animation.delay(time: duration) { Animation.delay(time: duration) {
bLayer.setValue(true, forKey: "animated") bLayer.setValue(true, forKey: "animated")
} }
} }
...@@ -122,7 +122,7 @@ internal extension Animation { ...@@ -122,7 +122,7 @@ internal extension Animation {
return return
} }
_ = Animation.delay(time: animated ? 0 : 0.15) { Animation.delay(time: animated ? 0 : 0.15) {
guard let pLayer = bLayer.sublayers?.first as? CAShapeLayer else { guard let pLayer = bLayer.sublayers?.first as? CAShapeLayer else {
return return
} }
...@@ -144,7 +144,7 @@ internal extension Animation { ...@@ -144,7 +144,7 @@ internal extension Animation {
default:break default:break
} }
_ = Animation.delay(time: duration) { Animation.delay(time: duration) {
pLayer.removeFromSuperlayer() pLayer.removeFromSuperlayer()
bLayer.removeFromSuperlayer() bLayer.removeFromSuperlayer()
} }
......
...@@ -53,7 +53,7 @@ open class PulseView: View { ...@@ -53,7 +53,7 @@ open class PulseView: View {
open func pulse(point: CGPoint? = nil) { open func pulse(point: CGPoint? = nil) {
let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point! let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point!
Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation) Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation)
_ = Animation.delay(time: 0.35) { [weak self] in Animation.delay(time: 0.35) { [weak self] in
guard let s = self else { guard let s = self else {
return return
} }
......
...@@ -102,7 +102,7 @@ open class SnackbarController: RootController { ...@@ -102,7 +102,7 @@ open class SnackbarController: RootController {
Animates to a SnackbarStatus. Animates to a SnackbarStatus.
- Parameter status: A SnackbarStatus enum value. - Parameter status: A SnackbarStatus enum value.
*/ */
open func animate(snackbar status: SnackbarStatus, delay: TimeInterval = 0, animations: ((Snackbar) -> Void)? = nil, completion: ((Snackbar) -> Void)? = nil) -> AnimationDelayCancelBlock { open func animate(snackbar status: SnackbarStatus, delay: TimeInterval = 0, animations: ((Snackbar) -> Void)? = nil, completion: ((Snackbar) -> Void)? = nil) -> AnimationDelayCancelBlock? {
return Animation.delay(time: delay) { [weak self, status = status, animations = animations, completion = completion] in return Animation.delay(time: delay) { [weak self, status = status, animations = animations, completion = completion] in
guard let s = self else { guard let s = self else {
return return
......
...@@ -79,6 +79,6 @@ open class StatusBarController: RootController { ...@@ -79,6 +79,6 @@ open class StatusBarController: RootController {
private func prepareStatusBarView() { private func prepareStatusBarView() {
statusBarView.zPosition = 3000 statusBarView.zPosition = 3000
statusBarView.backgroundColor = Color.black.withAlphaComponent(0.12) statusBarView.backgroundColor = Color.black.withAlphaComponent(0.12)
_ = view.layout(statusBarView).top(0).horizontally().height(20) view.layout(statusBarView).top(0).horizontally().height(20)
} }
} }
...@@ -101,7 +101,7 @@ open class TableViewCell: UITableViewCell { ...@@ -101,7 +101,7 @@ open class TableViewCell: UITableViewCell {
open func pulse(point: CGPoint? = nil) { open func pulse(point: CGPoint? = nil) {
let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point! let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point!
Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation) Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation)
_ = Animation.delay(time: 0.35) { [weak self] in Animation.delay(time: 0.35) { [weak self] in
guard let s = self else { guard let s = self else {
return return
} }
......
...@@ -161,11 +161,11 @@ public class TextView: UITextView { ...@@ -161,11 +161,11 @@ public class TextView: UITextView {
internal func reloadView() { internal func reloadView() {
if let p = placeholderLabel { if let p = placeholderLabel {
removeConstraints(constraints) removeConstraints(constraints)
_ = layout(p).edges( layout(p).edges(
top: textContainerInset.top, top: textContainerInset.top,
left: textContainerInset.left + textContainer.lineFragmentPadding, left: textContainerInset.left + textContainer.lineFragmentPadding,
bottom: textContainerInset.bottom, bottom: textContainerInset.bottom,
right: textContainerInset.right + textContainer.lineFragmentPadding) right: textContainerInset.right + textContainer.lineFragmentPadding)
} }
} }
......
...@@ -32,359 +32,359 @@ import AppKit ...@@ -32,359 +32,359 @@ import AppKit
public struct Color { public struct Color {
// clear // clear
public static let clear: NSColor = NSColor.clear public static let clear = NSColor.clear
// white // white
public static let white: NSColor = NSColor.white public static let white = NSColor.white
// black // black
public static let black: NSColor = NSColor.black public static let black = NSColor.black
// dark text // dark text
public struct darkText { public struct darkText {
public static let primary: NSColor = Color.black.withAlphaComponent(0.87) public static let primary = Color.black.withAlphaComponent(0.87)
public static let secondary: NSColor = Color.black.withAlphaComponent(0.54) public static let secondary = Color.black.withAlphaComponent(0.54)
public static let others: NSColor = Color.black.withAlphaComponent(0.38) public static let others = Color.black.withAlphaComponent(0.38)
public static let dividers: NSColor = Color.black.withAlphaComponent(0.12) public static let dividers = Color.black.withAlphaComponent(0.12)
} }
// light text // light text
public struct lightText { public struct lightText {
public static let primary: NSColor = Color.white public static let primary = Color.white
public static let secondary: NSColor = Color.white.withAlphaComponent(0.7) public static let secondary = Color.white.withAlphaComponent(0.7)
public static let others: NSColor = Color.white.withAlphaComponent(0.5) public static let others = Color.white.withAlphaComponent(0.5)
public static let dividers: NSColor = Color.white.withAlphaComponent(0.12) public static let dividers = Color.white.withAlphaComponent(0.12)
} }
// red // red
public struct red { public struct red {
public static let lighten5: NSColor = NSColor(red: 255/255, green: 235/255, blue: 238/255, alpha: 1) public static let lighten5 = NSColor(red: 255/255, green: 235/255, blue: 238/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 255/255, green: 205/255, blue: 210/255, alpha: 1) public static let lighten4 = NSColor(red: 255/255, green: 205/255, blue: 210/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 239/255, green: 154/255, blue: 154/255, alpha: 1) public static let lighten3 = NSColor(red: 239/255, green: 154/255, blue: 154/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 229/255, green: 115/255, blue: 115/255, alpha: 1) public static let lighten2 = NSColor(red: 229/255, green: 115/255, blue: 115/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 229/255, green: 83/255, blue: 80/255, alpha: 1) public static let lighten1 = NSColor(red: 229/255, green: 83/255, blue: 80/255, alpha: 1)
public static let base: NSColor = NSColor(red: 244/255, green: 67/255, blue: 54/255, alpha: 1) public static let base = NSColor(red: 244/255, green: 67/255, blue: 54/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 229/255, green: 57/255, blue: 53/255, alpha: 1) public static let darken1 = NSColor(red: 229/255, green: 57/255, blue: 53/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 211/255, green: 47/255, blue: 47/255, alpha: 1) public static let darken2 = NSColor(red: 211/255, green: 47/255, blue: 47/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 198/255, green: 40/255, blue: 40/255, alpha: 1) public static let darken3 = NSColor(red: 198/255, green: 40/255, blue: 40/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 183/255, green: 28/255, blue: 28/255, alpha: 1) public static let darken4 = NSColor(red: 183/255, green: 28/255, blue: 28/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 255/255, green: 138/255, blue: 128/255, alpha: 1) public static let accent1 = NSColor(red: 255/255, green: 138/255, blue: 128/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 255/255, green: 82/255, blue: 82/255, alpha: 1) public static let accent2 = NSColor(red: 255/255, green: 82/255, blue: 82/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 255/255, green: 23/255, blue: 68/255, alpha: 1) public static let accent3 = NSColor(red: 255/255, green: 23/255, blue: 68/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 213/255, green: 0/255, blue: 0/255, alpha: 1) public static let accent4 = NSColor(red: 213/255, green: 0/255, blue: 0/255, alpha: 1)
} }
// pink // pink
public struct pink { public struct pink {
public static let lighten5: NSColor = NSColor(red: 252/255, green: 228/255, blue: 236/255, alpha: 1) public static let lighten5 = NSColor(red: 252/255, green: 228/255, blue: 236/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 248/255, green: 187/255, blue: 208/255, alpha: 1) public static let lighten4 = NSColor(red: 248/255, green: 187/255, blue: 208/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 244/255, green: 143/255, blue: 177/255, alpha: 1) public static let lighten3 = NSColor(red: 244/255, green: 143/255, blue: 177/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 240/255, green: 98/255, blue: 146/255, alpha: 1) public static let lighten2 = NSColor(red: 240/255, green: 98/255, blue: 146/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 236/255, green: 64/255, blue: 122/255, alpha: 1) public static let lighten1 = NSColor(red: 236/255, green: 64/255, blue: 122/255, alpha: 1)
public static let base: NSColor = NSColor(red: 233/255, green: 30/255, blue: 99/255, alpha: 1) public static let base = NSColor(red: 233/255, green: 30/255, blue: 99/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 216/255, green: 27/255, blue: 96/255, alpha: 1) public static let darken1 = NSColor(red: 216/255, green: 27/255, blue: 96/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 194/255, green: 24/255, blue: 91/255, alpha: 1) public static let darken2 = NSColor(red: 194/255, green: 24/255, blue: 91/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 173/255, green: 20/255, blue: 87/255, alpha: 1) public static let darken3 = NSColor(red: 173/255, green: 20/255, blue: 87/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 136/255, green: 14/255, blue: 79/255, alpha: 1) public static let darken4 = NSColor(red: 136/255, green: 14/255, blue: 79/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 255/255, green: 128/255, blue: 171/255, alpha: 1) public static let accent1 = NSColor(red: 255/255, green: 128/255, blue: 171/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 255/255, green: 64/255, blue: 129/255, alpha: 1) public static let accent2 = NSColor(red: 255/255, green: 64/255, blue: 129/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 245/255, green: 0/255, blue: 87/255, alpha: 1) public static let accent3 = NSColor(red: 245/255, green: 0/255, blue: 87/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 197/255, green: 17/255, blue: 98/255, alpha: 1) public static let accent4 = NSColor(red: 197/255, green: 17/255, blue: 98/255, alpha: 1)
} }
// purple // purple
public struct purple { public struct purple {
public static let lighten5: NSColor = NSColor(red: 243/255, green: 229/255, blue: 245/255, alpha: 1) public static let lighten5 = NSColor(red: 243/255, green: 229/255, blue: 245/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 225/255, green: 190/255, blue: 231/255, alpha: 1) public static let lighten4 = NSColor(red: 225/255, green: 190/255, blue: 231/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 206/255, green: 147/255, blue: 216/255, alpha: 1) public static let lighten3 = NSColor(red: 206/255, green: 147/255, blue: 216/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 186/255, green: 104/255, blue: 200/255, alpha: 1) public static let lighten2 = NSColor(red: 186/255, green: 104/255, blue: 200/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 171/255, green: 71/255, blue: 188/255, alpha: 1) public static let lighten1 = NSColor(red: 171/255, green: 71/255, blue: 188/255, alpha: 1)
public static let base: NSColor = NSColor(red: 156/255, green: 39/255, blue: 176/255, alpha: 1) public static let base = NSColor(red: 156/255, green: 39/255, blue: 176/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 142/255, green: 36/255, blue: 170/255, alpha: 1) public static let darken1 = NSColor(red: 142/255, green: 36/255, blue: 170/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 123/255, green: 31/255, blue: 162/255, alpha: 1) public static let darken2 = NSColor(red: 123/255, green: 31/255, blue: 162/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 106/255, green: 27/255, blue: 154/255, alpha: 1) public static let darken3 = NSColor(red: 106/255, green: 27/255, blue: 154/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 74/255, green: 20/255, blue: 140/255, alpha: 1) public static let darken4 = NSColor(red: 74/255, green: 20/255, blue: 140/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 234/255, green: 128/255, blue: 252/255, alpha: 1) public static let accent1 = NSColor(red: 234/255, green: 128/255, blue: 252/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 224/255, green: 64/255, blue: 251/255, alpha: 1) public static let accent2 = NSColor(red: 224/255, green: 64/255, blue: 251/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 213/255, green: 0/255, blue: 249/255, alpha: 1) public static let accent3 = NSColor(red: 213/255, green: 0/255, blue: 249/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 170/255, green: 0/255, blue: 255/255, alpha: 1) public static let accent4 = NSColor(red: 170/255, green: 0/255, blue: 255/255, alpha: 1)
} }
// deepPurple // deepPurple
public struct deepPurple { public struct deepPurple {
public static let lighten5: NSColor = NSColor(red: 237/255, green: 231/255, blue: 246/255, alpha: 1) public static let lighten5 = NSColor(red: 237/255, green: 231/255, blue: 246/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 209/255, green: 196/255, blue: 233/255, alpha: 1) public static let lighten4 = NSColor(red: 209/255, green: 196/255, blue: 233/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 179/255, green: 157/255, blue: 219/255, alpha: 1) public static let lighten3 = NSColor(red: 179/255, green: 157/255, blue: 219/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 149/255, green: 117/255, blue: 205/255, alpha: 1) public static let lighten2 = NSColor(red: 149/255, green: 117/255, blue: 205/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 126/255, green: 87/255, blue: 194/255, alpha: 1) public static let lighten1 = NSColor(red: 126/255, green: 87/255, blue: 194/255, alpha: 1)
public static let base: NSColor = NSColor(red: 103/255, green: 58/255, blue: 183/255, alpha: 1) public static let base = NSColor(red: 103/255, green: 58/255, blue: 183/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 94/255, green: 53/255, blue: 177/255, alpha: 1) public static let darken1 = NSColor(red: 94/255, green: 53/255, blue: 177/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 81/255, green: 45/255, blue: 168/255, alpha: 1) public static let darken2 = NSColor(red: 81/255, green: 45/255, blue: 168/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 69/255, green: 39/255, blue: 160/255, alpha: 1) public static let darken3 = NSColor(red: 69/255, green: 39/255, blue: 160/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 49/255, green: 27/255, blue: 146/255, alpha: 1) public static let darken4 = NSColor(red: 49/255, green: 27/255, blue: 146/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 179/255, green: 136/255, blue: 255/255, alpha: 1) public static let accent1 = NSColor(red: 179/255, green: 136/255, blue: 255/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 124/255, green: 77/255, blue: 255/255, alpha: 1) public static let accent2 = NSColor(red: 124/255, green: 77/255, blue: 255/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 101/255, green: 31/255, blue: 255/255, alpha: 1) public static let accent3 = NSColor(red: 101/255, green: 31/255, blue: 255/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 98/255, green: 0/255, blue: 234/255, alpha: 1) public static let accent4 = NSColor(red: 98/255, green: 0/255, blue: 234/255, alpha: 1)
} }
// indigo // indigo
public struct indigo { public struct indigo {
public static let lighten5: NSColor = NSColor(red: 232/255, green: 234/255, blue: 246/255, alpha: 1) public static let lighten5 = NSColor(red: 232/255, green: 234/255, blue: 246/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 197/255, green: 202/255, blue: 233/255, alpha: 1) public static let lighten4 = NSColor(red: 197/255, green: 202/255, blue: 233/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 159/255, green: 168/255, blue: 218/255, alpha: 1) public static let lighten3 = NSColor(red: 159/255, green: 168/255, blue: 218/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 121/255, green: 134/255, blue: 203/255, alpha: 1) public static let lighten2 = NSColor(red: 121/255, green: 134/255, blue: 203/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 92/255, green: 107/255, blue: 192/255, alpha: 1) public static let lighten1 = NSColor(red: 92/255, green: 107/255, blue: 192/255, alpha: 1)
public static let base: NSColor = NSColor(red: 63/255, green: 81/255, blue: 181/255, alpha: 1) public static let base = NSColor(red: 63/255, green: 81/255, blue: 181/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 57/255, green: 73/255, blue: 171/255, alpha: 1) public static let darken1 = NSColor(red: 57/255, green: 73/255, blue: 171/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 48/255, green: 63/255, blue: 159/255, alpha: 1) public static let darken2 = NSColor(red: 48/255, green: 63/255, blue: 159/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 40/255, green: 53/255, blue: 147/255, alpha: 1) public static let darken3 = NSColor(red: 40/255, green: 53/255, blue: 147/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 26/255, green: 35/255, blue: 126/255, alpha: 1) public static let darken4 = NSColor(red: 26/255, green: 35/255, blue: 126/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 140/255, green: 158/255, blue: 255/255, alpha: 1) public static let accent1 = NSColor(red: 140/255, green: 158/255, blue: 255/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 83/255, green: 109/255, blue: 254/255, alpha: 1) public static let accent2 = NSColor(red: 83/255, green: 109/255, blue: 254/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 61/255, green: 90/255, blue: 254/255, alpha: 1) public static let accent3 = NSColor(red: 61/255, green: 90/255, blue: 254/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 48/255, green: 79/255, blue: 254/255, alpha: 1) public static let accent4 = NSColor(red: 48/255, green: 79/255, blue: 254/255, alpha: 1)
} }
// blue // blue
public struct blue { public struct blue {
public static let lighten5: NSColor = NSColor(red: 227/255, green: 242/255, blue: 253/255, alpha: 1) public static let lighten5 = NSColor(red: 227/255, green: 242/255, blue: 253/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 187/255, green: 222/255, blue: 251/255, alpha: 1) public static let lighten4 = NSColor(red: 187/255, green: 222/255, blue: 251/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 144/255, green: 202/255, blue: 249/255, alpha: 1) public static let lighten3 = NSColor(red: 144/255, green: 202/255, blue: 249/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 100/255, green: 181/255, blue: 246/255, alpha: 1) public static let lighten2 = NSColor(red: 100/255, green: 181/255, blue: 246/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 66/255, green: 165/255, blue: 245/255, alpha: 1) public static let lighten1 = NSColor(red: 66/255, green: 165/255, blue: 245/255, alpha: 1)
public static let base: NSColor = NSColor(red: 33/255, green: 150/255, blue: 243/255, alpha: 1) public static let base = NSColor(red: 33/255, green: 150/255, blue: 243/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 30/255, green: 136/255, blue: 229/255, alpha: 1) public static let darken1 = NSColor(red: 30/255, green: 136/255, blue: 229/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 25/255, green: 118/255, blue: 210/255, alpha: 1) public static let darken2 = NSColor(red: 25/255, green: 118/255, blue: 210/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 21/255, green: 101/255, blue: 192/255, alpha: 1) public static let darken3 = NSColor(red: 21/255, green: 101/255, blue: 192/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 13/255, green: 71/255, blue: 161/255, alpha: 1) public static let darken4 = NSColor(red: 13/255, green: 71/255, blue: 161/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 130/255, green: 177/255, blue: 255/255, alpha: 1) public static let accent1 = NSColor(red: 130/255, green: 177/255, blue: 255/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 68/255, green: 138/255, blue: 255/255, alpha: 1) public static let accent2 = NSColor(red: 68/255, green: 138/255, blue: 255/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 41/255, green: 121/255, blue: 255/255, alpha: 1) public static let accent3 = NSColor(red: 41/255, green: 121/255, blue: 255/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 41/255, green: 98/255, blue: 255/255, alpha: 1) public static let accent4 = NSColor(red: 41/255, green: 98/255, blue: 255/255, alpha: 1)
} }
// light blue // light blue
public struct lightBlue { public struct lightBlue {
public static let lighten5: NSColor = NSColor(red: 225/255, green: 245/255, blue: 254/255, alpha: 1) public static let lighten5 = NSColor(red: 225/255, green: 245/255, blue: 254/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 179/255, green: 229/255, blue: 252/255, alpha: 1) public static let lighten4 = NSColor(red: 179/255, green: 229/255, blue: 252/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 129/255, green: 212/255, blue: 250/255, alpha: 1) public static let lighten3 = NSColor(red: 129/255, green: 212/255, blue: 250/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 79/255, green: 195/255, blue: 247/255, alpha: 1) public static let lighten2 = NSColor(red: 79/255, green: 195/255, blue: 247/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 41/255, green: 182/255, blue: 246/255, alpha: 1) public static let lighten1 = NSColor(red: 41/255, green: 182/255, blue: 246/255, alpha: 1)
public static let base: NSColor = NSColor(red: 3/255, green: 169/255, blue: 244/255, alpha: 1) public static let base = NSColor(red: 3/255, green: 169/255, blue: 244/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 3/255, green: 155/255, blue: 229/255, alpha: 1) public static let darken1 = NSColor(red: 3/255, green: 155/255, blue: 229/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 2/255, green: 136/255, blue: 209/255, alpha: 1) public static let darken2 = NSColor(red: 2/255, green: 136/255, blue: 209/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 2/255, green: 119/255, blue: 189/255, alpha: 1) public static let darken3 = NSColor(red: 2/255, green: 119/255, blue: 189/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 1/255, green: 87/255, blue: 155/255, alpha: 1) public static let darken4 = NSColor(red: 1/255, green: 87/255, blue: 155/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 128/255, green: 216/255, blue: 255/255, alpha: 1) public static let accent1 = NSColor(red: 128/255, green: 216/255, blue: 255/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 64/255, green: 196/255, blue: 255/255, alpha: 1) public static let accent2 = NSColor(red: 64/255, green: 196/255, blue: 255/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 0/255, green: 176/255, blue: 255/255, alpha: 1) public static let accent3 = NSColor(red: 0/255, green: 176/255, blue: 255/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 0/255, green: 145/255, blue: 234/255, alpha: 1) public static let accent4 = NSColor(red: 0/255, green: 145/255, blue: 234/255, alpha: 1)
} }
// cyan // cyan
public struct cyan { public struct cyan {
public static let lighten5: NSColor = NSColor(red: 224/255, green: 247/255, blue: 250/255, alpha: 1) public static let lighten5 = NSColor(red: 224/255, green: 247/255, blue: 250/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 178/255, green: 235/255, blue: 242/255, alpha: 1) public static let lighten4 = NSColor(red: 178/255, green: 235/255, blue: 242/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 128/255, green: 222/255, blue: 234/255, alpha: 1) public static let lighten3 = NSColor(red: 128/255, green: 222/255, blue: 234/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 77/255, green: 208/255, blue: 225/255, alpha: 1) public static let lighten2 = NSColor(red: 77/255, green: 208/255, blue: 225/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 38/255, green: 198/255, blue: 218/255, alpha: 1) public static let lighten1 = NSColor(red: 38/255, green: 198/255, blue: 218/255, alpha: 1)
public static let base: NSColor = NSColor(red: 0/255, green: 188/255, blue: 212/255, alpha: 1) public static let base = NSColor(red: 0/255, green: 188/255, blue: 212/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 0/255, green: 172/255, blue: 193/255, alpha: 1) public static let darken1 = NSColor(red: 0/255, green: 172/255, blue: 193/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 0/255, green: 151/255, blue: 167/255, alpha: 1) public static let darken2 = NSColor(red: 0/255, green: 151/255, blue: 167/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 0/255, green: 131/255, blue: 143/255, alpha: 1) public static let darken3 = NSColor(red: 0/255, green: 131/255, blue: 143/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 0/255, green: 96/255, blue: 100/255, alpha: 1) public static let darken4 = NSColor(red: 0/255, green: 96/255, blue: 100/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 132/255, green: 255/255, blue: 255/255, alpha: 1) public static let accent1 = NSColor(red: 132/255, green: 255/255, blue: 255/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 24/255, green: 255/255, blue: 255/255, alpha: 1) public static let accent2 = NSColor(red: 24/255, green: 255/255, blue: 255/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 0/255, green: 229/255, blue: 255/255, alpha: 1) public static let accent3 = NSColor(red: 0/255, green: 229/255, blue: 255/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 0/255, green: 184/255, blue: 212/255, alpha: 1) public static let accent4 = NSColor(red: 0/255, green: 184/255, blue: 212/255, alpha: 1)
} }
// teal // teal
public struct teal { public struct teal {
public static let lighten5: NSColor = NSColor(red: 224/255, green: 242/255, blue: 241/255, alpha: 1) public static let lighten5 = NSColor(red: 224/255, green: 242/255, blue: 241/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 178/255, green: 223/255, blue: 219/255, alpha: 1) public static let lighten4 = NSColor(red: 178/255, green: 223/255, blue: 219/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 128/255, green: 203/255, blue: 196/255, alpha: 1) public static let lighten3 = NSColor(red: 128/255, green: 203/255, blue: 196/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 77/255, green: 182/255, blue: 172/255, alpha: 1) public static let lighten2 = NSColor(red: 77/255, green: 182/255, blue: 172/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 38/255, green: 166/255, blue: 154/255, alpha: 1) public static let lighten1 = NSColor(red: 38/255, green: 166/255, blue: 154/255, alpha: 1)
public static let base: NSColor = NSColor(red: 0/255, green: 150/255, blue: 136/255, alpha: 1) public static let base = NSColor(red: 0/255, green: 150/255, blue: 136/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 0/255, green: 137/255, blue: 123/255, alpha: 1) public static let darken1 = NSColor(red: 0/255, green: 137/255, blue: 123/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 0/255, green: 121/255, blue: 107/255, alpha: 1) public static let darken2 = NSColor(red: 0/255, green: 121/255, blue: 107/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 0/255, green: 105/255, blue: 92/255, alpha: 1) public static let darken3 = NSColor(red: 0/255, green: 105/255, blue: 92/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 0/255, green: 77/255, blue: 64/255, alpha: 1) public static let darken4 = NSColor(red: 0/255, green: 77/255, blue: 64/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 167/255, green: 255/255, blue: 235/255, alpha: 1) public static let accent1 = NSColor(red: 167/255, green: 255/255, blue: 235/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 100/255, green: 255/255, blue: 218/255, alpha: 1) public static let accent2 = NSColor(red: 100/255, green: 255/255, blue: 218/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 29/255, green: 233/255, blue: 182/255, alpha: 1) public static let accent3 = NSColor(red: 29/255, green: 233/255, blue: 182/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 0/255, green: 191/255, blue: 165/255, alpha: 1) public static let accent4 = NSColor(red: 0/255, green: 191/255, blue: 165/255, alpha: 1)
} }
// green // green
public struct green { public struct green {
public static let lighten5: NSColor = NSColor(red: 232/255, green: 245/255, blue: 233/255, alpha: 1) public static let lighten5 = NSColor(red: 232/255, green: 245/255, blue: 233/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 200/255, green: 230/255, blue: 201/255, alpha: 1) public static let lighten4 = NSColor(red: 200/255, green: 230/255, blue: 201/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 165/255, green: 214/255, blue: 167/255, alpha: 1) public static let lighten3 = NSColor(red: 165/255, green: 214/255, blue: 167/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 129/255, green: 199/255, blue: 132/255, alpha: 1) public static let lighten2 = NSColor(red: 129/255, green: 199/255, blue: 132/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 102/255, green: 187/255, blue: 106/255, alpha: 1) public static let lighten1 = NSColor(red: 102/255, green: 187/255, blue: 106/255, alpha: 1)
public static let base: NSColor = NSColor(red: 76/255, green: 175/255, blue: 80/255, alpha: 1) public static let base = NSColor(red: 76/255, green: 175/255, blue: 80/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 67/255, green: 160/255, blue: 71/255, alpha: 1) public static let darken1 = NSColor(red: 67/255, green: 160/255, blue: 71/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 56/255, green: 142/255, blue: 60/255, alpha: 1) public static let darken2 = NSColor(red: 56/255, green: 142/255, blue: 60/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 46/255, green: 125/255, blue: 50/255, alpha: 1) public static let darken3 = NSColor(red: 46/255, green: 125/255, blue: 50/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 27/255, green: 94/255, blue: 32/255, alpha: 1) public static let darken4 = NSColor(red: 27/255, green: 94/255, blue: 32/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 185/255, green: 246/255, blue: 202/255, alpha: 1) public static let accent1 = NSColor(red: 185/255, green: 246/255, blue: 202/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 105/255, green: 240/255, blue: 174/255, alpha: 1) public static let accent2 = NSColor(red: 105/255, green: 240/255, blue: 174/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 0/255, green: 230/255, blue: 118/255, alpha: 1) public static let accent3 = NSColor(red: 0/255, green: 230/255, blue: 118/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 0/255, green: 200/255, blue: 83/255, alpha: 1) public static let accent4 = NSColor(red: 0/255, green: 200/255, blue: 83/255, alpha: 1)
} }
// light green // light green
public struct lightGreen { public struct lightGreen {
public static let lighten5: NSColor = NSColor(red: 241/255, green: 248/255, blue: 233/255, alpha: 1) public static let lighten5 = NSColor(red: 241/255, green: 248/255, blue: 233/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 220/255, green: 237/255, blue: 200/255, alpha: 1) public static let lighten4 = NSColor(red: 220/255, green: 237/255, blue: 200/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 197/255, green: 225/255, blue: 165/255, alpha: 1) public static let lighten3 = NSColor(red: 197/255, green: 225/255, blue: 165/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 174/255, green: 213/255, blue: 129/255, alpha: 1) public static let lighten2 = NSColor(red: 174/255, green: 213/255, blue: 129/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 156/255, green: 204/255, blue: 101/255, alpha: 1) public static let lighten1 = NSColor(red: 156/255, green: 204/255, blue: 101/255, alpha: 1)
public static let base: NSColor = NSColor(red: 139/255, green: 195/255, blue: 74/255, alpha: 1) public static let base = NSColor(red: 139/255, green: 195/255, blue: 74/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 124/255, green: 179/255, blue: 66/255, alpha: 1) public static let darken1 = NSColor(red: 124/255, green: 179/255, blue: 66/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 104/255, green: 159/255, blue: 56/255, alpha: 1) public static let darken2 = NSColor(red: 104/255, green: 159/255, blue: 56/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 85/255, green: 139/255, blue: 47/255, alpha: 1) public static let darken3 = NSColor(red: 85/255, green: 139/255, blue: 47/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 51/255, green: 105/255, blue: 30/255, alpha: 1) public static let darken4 = NSColor(red: 51/255, green: 105/255, blue: 30/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 204/255, green: 255/255, blue: 144/255, alpha: 1) public static let accent1 = NSColor(red: 204/255, green: 255/255, blue: 144/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 178/255, green: 255/255, blue: 89/255, alpha: 1) public static let accent2 = NSColor(red: 178/255, green: 255/255, blue: 89/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 118/255, green: 255/255, blue: 3/255, alpha: 1) public static let accent3 = NSColor(red: 118/255, green: 255/255, blue: 3/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 100/255, green: 221/255, blue: 23/255, alpha: 1) public static let accent4 = NSColor(red: 100/255, green: 221/255, blue: 23/255, alpha: 1)
} }
// lime // lime
public struct lime { public struct lime {
public static let lighten5: NSColor = NSColor(red: 249/255, green: 251/255, blue: 231/255, alpha: 1) public static let lighten5 = NSColor(red: 249/255, green: 251/255, blue: 231/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 240/255, green: 244/255, blue: 195/255, alpha: 1) public static let lighten4 = NSColor(red: 240/255, green: 244/255, blue: 195/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 230/255, green: 238/255, blue: 156/255, alpha: 1) public static let lighten3 = NSColor(red: 230/255, green: 238/255, blue: 156/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 220/255, green: 231/255, blue: 117/255, alpha: 1) public static let lighten2 = NSColor(red: 220/255, green: 231/255, blue: 117/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 212/255, green: 225/255, blue: 87/255, alpha: 1) public static let lighten1 = NSColor(red: 212/255, green: 225/255, blue: 87/255, alpha: 1)
public static let base: NSColor = NSColor(red: 205/255, green: 220/255, blue: 57/255, alpha: 1) public static let base = NSColor(red: 205/255, green: 220/255, blue: 57/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 192/255, green: 202/255, blue: 51/255, alpha: 1) public static let darken1 = NSColor(red: 192/255, green: 202/255, blue: 51/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 175/255, green: 180/255, blue: 43/255, alpha: 1) public static let darken2 = NSColor(red: 175/255, green: 180/255, blue: 43/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 158/255, green: 157/255, blue: 36/255, alpha: 1) public static let darken3 = NSColor(red: 158/255, green: 157/255, blue: 36/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 130/255, green: 119/255, blue: 23/255, alpha: 1) public static let darken4 = NSColor(red: 130/255, green: 119/255, blue: 23/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 244/255, green: 255/255, blue: 129/255, alpha: 1) public static let accent1 = NSColor(red: 244/255, green: 255/255, blue: 129/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 238/255, green: 255/255, blue: 65/255, alpha: 1) public static let accent2 = NSColor(red: 238/255, green: 255/255, blue: 65/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 198/255, green: 255/255, blue: 0/255, alpha: 1) public static let accent3 = NSColor(red: 198/255, green: 255/255, blue: 0/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 174/255, green: 234/255, blue: 0/255, alpha: 1) public static let accent4 = NSColor(red: 174/255, green: 234/255, blue: 0/255, alpha: 1)
} }
// yellow // yellow
public struct yellow { public struct yellow {
public static let lighten5: NSColor = NSColor(red: 255/255, green: 253/255, blue: 231/255, alpha: 1) public static let lighten5 = NSColor(red: 255/255, green: 253/255, blue: 231/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 255/255, green: 249/255, blue: 196/255, alpha: 1) public static let lighten4 = NSColor(red: 255/255, green: 249/255, blue: 196/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 255/255, green: 245/255, blue: 157/255, alpha: 1) public static let lighten3 = NSColor(red: 255/255, green: 245/255, blue: 157/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 255/255, green: 241/255, blue: 118/255, alpha: 1) public static let lighten2 = NSColor(red: 255/255, green: 241/255, blue: 118/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 255/255, green: 238/255, blue: 88/255, alpha: 1) public static let lighten1 = NSColor(red: 255/255, green: 238/255, blue: 88/255, alpha: 1)
public static let base: NSColor = NSColor(red: 255/255, green: 235/255, blue: 59/255, alpha: 1) public static let base = NSColor(red: 255/255, green: 235/255, blue: 59/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 253/255, green: 216/255, blue: 53/255, alpha: 1) public static let darken1 = NSColor(red: 253/255, green: 216/255, blue: 53/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 251/255, green: 192/255, blue: 45/255, alpha: 1) public static let darken2 = NSColor(red: 251/255, green: 192/255, blue: 45/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 249/255, green: 168/255, blue: 37/255, alpha: 1) public static let darken3 = NSColor(red: 249/255, green: 168/255, blue: 37/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 245/255, green: 127/255, blue: 23/255, alpha: 1) public static let darken4 = NSColor(red: 245/255, green: 127/255, blue: 23/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 255/255, green: 255/255, blue: 141/255, alpha: 1) public static let accent1 = NSColor(red: 255/255, green: 255/255, blue: 141/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 255/255, green: 255/255, blue: 0/255, alpha: 1) public static let accent2 = NSColor(red: 255/255, green: 255/255, blue: 0/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 255/255, green: 234/255, blue: 0/255, alpha: 1) public static let accent3 = NSColor(red: 255/255, green: 234/255, blue: 0/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 255/255, green: 214/255, blue: 0/255, alpha: 1) public static let accent4 = NSColor(red: 255/255, green: 214/255, blue: 0/255, alpha: 1)
} }
// amber // amber
public struct amber { public struct amber {
public static let lighten5: NSColor = NSColor(red: 255/255, green: 248/255, blue: 225/255, alpha: 1) public static let lighten5 = NSColor(red: 255/255, green: 248/255, blue: 225/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 255/255, green: 236/255, blue: 179/255, alpha: 1) public static let lighten4 = NSColor(red: 255/255, green: 236/255, blue: 179/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 255/255, green: 224/255, blue: 130/255, alpha: 1) public static let lighten3 = NSColor(red: 255/255, green: 224/255, blue: 130/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 255/255, green: 213/255, blue: 79/255, alpha: 1) public static let lighten2 = NSColor(red: 255/255, green: 213/255, blue: 79/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 255/255, green: 202/255, blue: 40/255, alpha: 1) public static let lighten1 = NSColor(red: 255/255, green: 202/255, blue: 40/255, alpha: 1)
public static let base: NSColor = NSColor(red: 255/255, green: 193/255, blue: 7/255, alpha: 1) public static let base = NSColor(red: 255/255, green: 193/255, blue: 7/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 255/255, green: 179/255, blue: 0/255, alpha: 1) public static let darken1 = NSColor(red: 255/255, green: 179/255, blue: 0/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 255/255, green: 160/255, blue: 0/255, alpha: 1) public static let darken2 = NSColor(red: 255/255, green: 160/255, blue: 0/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 255/255, green: 143/255, blue: 0/255, alpha: 1) public static let darken3 = NSColor(red: 255/255, green: 143/255, blue: 0/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 255/255, green: 111/255, blue: 0/255, alpha: 1) public static let darken4 = NSColor(red: 255/255, green: 111/255, blue: 0/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 255/255, green: 229/255, blue: 127/255, alpha: 1) public static let accent1 = NSColor(red: 255/255, green: 229/255, blue: 127/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 255/255, green: 215/255, blue: 64/255, alpha: 1) public static let accent2 = NSColor(red: 255/255, green: 215/255, blue: 64/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 255/255, green: 196/255, blue: 0/255, alpha: 1) public static let accent3 = NSColor(red: 255/255, green: 196/255, blue: 0/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 255/255, green: 171/255, blue: 0/255, alpha: 1) public static let accent4 = NSColor(red: 255/255, green: 171/255, blue: 0/255, alpha: 1)
} }
// orange // orange
public struct orange { public struct orange {
public static let lighten5: NSColor = NSColor(red: 255/255, green: 243/255, blue: 224/255, alpha: 1) public static let lighten5 = NSColor(red: 255/255, green: 243/255, blue: 224/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 255/255, green: 224/255, blue: 178/255, alpha: 1) public static let lighten4 = NSColor(red: 255/255, green: 224/255, blue: 178/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 255/255, green: 204/255, blue: 128/255, alpha: 1) public static let lighten3 = NSColor(red: 255/255, green: 204/255, blue: 128/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 255/255, green: 183/255, blue: 77/255, alpha: 1) public static let lighten2 = NSColor(red: 255/255, green: 183/255, blue: 77/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 255/255, green: 167/255, blue: 38/255, alpha: 1) public static let lighten1 = NSColor(red: 255/255, green: 167/255, blue: 38/255, alpha: 1)
public static let base: NSColor = NSColor(red: 255/255, green: 152/255, blue: 0/255, alpha: 1) public static let base = NSColor(red: 255/255, green: 152/255, blue: 0/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 251/255, green: 140/255, blue: 0/255, alpha: 1) public static let darken1 = NSColor(red: 251/255, green: 140/255, blue: 0/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 245/255, green: 124/255, blue: 0/255, alpha: 1) public static let darken2 = NSColor(red: 245/255, green: 124/255, blue: 0/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 239/255, green: 108/255, blue: 0/255, alpha: 1) public static let darken3 = NSColor(red: 239/255, green: 108/255, blue: 0/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 230/255, green: 81/255, blue: 0/255, alpha: 1) public static let darken4 = NSColor(red: 230/255, green: 81/255, blue: 0/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 255/255, green: 209/255, blue: 128/255, alpha: 1) public static let accent1 = NSColor(red: 255/255, green: 209/255, blue: 128/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 255/255, green: 171/255, blue: 64/255, alpha: 1) public static let accent2 = NSColor(red: 255/255, green: 171/255, blue: 64/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 255/255, green: 145/255, blue: 0/255, alpha: 1) public static let accent3 = NSColor(red: 255/255, green: 145/255, blue: 0/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 255/255, green: 109/255, blue: 0/255, alpha: 1) public static let accent4 = NSColor(red: 255/255, green: 109/255, blue: 0/255, alpha: 1)
} }
// deep orange // deep orange
public struct deepOrange { public struct deepOrange {
public static let lighten5: NSColor = NSColor(red: 251/255, green: 233/255, blue: 231/255, alpha: 1) public static let lighten5 = NSColor(red: 251/255, green: 233/255, blue: 231/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 255/255, green: 204/255, blue: 188/255, alpha: 1) public static let lighten4 = NSColor(red: 255/255, green: 204/255, blue: 188/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 255/255, green: 171/255, blue: 145/255, alpha: 1) public static let lighten3 = NSColor(red: 255/255, green: 171/255, blue: 145/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 255/255, green: 138/255, blue: 101/255, alpha: 1) public static let lighten2 = NSColor(red: 255/255, green: 138/255, blue: 101/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 255/255, green: 112/255, blue: 67/255, alpha: 1) public static let lighten1 = NSColor(red: 255/255, green: 112/255, blue: 67/255, alpha: 1)
public static let base: NSColor = NSColor(red: 255/255, green: 87/255, blue: 34/255, alpha: 1) public static let base = NSColor(red: 255/255, green: 87/255, blue: 34/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 244/255, green: 81/255, blue: 30/255, alpha: 1) public static let darken1 = NSColor(red: 244/255, green: 81/255, blue: 30/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 230/255, green: 74/255, blue: 25/255, alpha: 1) public static let darken2 = NSColor(red: 230/255, green: 74/255, blue: 25/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 216/255, green: 67/255, blue: 21/255, alpha: 1) public static let darken3 = NSColor(red: 216/255, green: 67/255, blue: 21/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 191/255, green: 54/255, blue: 12/255, alpha: 1) public static let darken4 = NSColor(red: 191/255, green: 54/255, blue: 12/255, alpha: 1)
public static let accent1: NSColor = NSColor(red: 255/255, green: 158/255, blue: 128/255, alpha: 1) public static let accent1 = NSColor(red: 255/255, green: 158/255, blue: 128/255, alpha: 1)
public static let accent2: NSColor = NSColor(red: 255/255, green: 110/255, blue: 64/255, alpha: 1) public static let accent2 = NSColor(red: 255/255, green: 110/255, blue: 64/255, alpha: 1)
public static let accent3: NSColor = NSColor(red: 255/255, green: 61/255, blue: 0/255, alpha: 1) public static let accent3 = NSColor(red: 255/255, green: 61/255, blue: 0/255, alpha: 1)
public static let accent4: NSColor = NSColor(red: 221/255, green: 44/255, blue: 0/255, alpha: 1) public static let accent4 = NSColor(red: 221/255, green: 44/255, blue: 0/255, alpha: 1)
} }
// brown // brown
public struct brown { public struct brown {
public static let lighten5: NSColor = NSColor(red: 239/255, green: 235/255, blue: 233/255, alpha: 1) public static let lighten5 = NSColor(red: 239/255, green: 235/255, blue: 233/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 215/255, green: 204/255, blue: 200/255, alpha: 1) public static let lighten4 = NSColor(red: 215/255, green: 204/255, blue: 200/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 188/255, green: 170/255, blue: 164/255, alpha: 1) public static let lighten3 = NSColor(red: 188/255, green: 170/255, blue: 164/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 161/255, green: 136/255, blue: 127/255, alpha: 1) public static let lighten2 = NSColor(red: 161/255, green: 136/255, blue: 127/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 141/255, green: 110/255, blue: 99/255, alpha: 1) public static let lighten1 = NSColor(red: 141/255, green: 110/255, blue: 99/255, alpha: 1)
public static let base: NSColor = NSColor(red: 121/255, green: 85/255, blue: 72/255, alpha: 1) public static let base = NSColor(red: 121/255, green: 85/255, blue: 72/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 109/255, green: 76/255, blue: 65/255, alpha: 1) public static let darken1 = NSColor(red: 109/255, green: 76/255, blue: 65/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 93/255, green: 64/255, blue: 55/255, alpha: 1) public static let darken2 = NSColor(red: 93/255, green: 64/255, blue: 55/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 78/255, green: 52/255, blue: 46/255, alpha: 1) public static let darken3 = NSColor(red: 78/255, green: 52/255, blue: 46/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 62/255, green: 39/255, blue: 35/255, alpha: 1) public static let darken4 = NSColor(red: 62/255, green: 39/255, blue: 35/255, alpha: 1)
} }
// grey // grey
public struct grey { public struct grey {
public static let lighten5: NSColor = NSColor(red: 250/255, green: 250/255, blue: 250/255, alpha: 1) public static let lighten5 = NSColor(red: 250/255, green: 250/255, blue: 250/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 245/255, green: 245/255, blue: 245/255, alpha: 1) public static let lighten4 = NSColor(red: 245/255, green: 245/255, blue: 245/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 238/255, green: 238/255, blue: 238/255, alpha: 1) public static let lighten3 = NSColor(red: 238/255, green: 238/255, blue: 238/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 224/255, green: 224/255, blue: 224/255, alpha: 1) public static let lighten2 = NSColor(red: 224/255, green: 224/255, blue: 224/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 189/255, green: 189/255, blue: 189/255, alpha: 1) public static let lighten1 = NSColor(red: 189/255, green: 189/255, blue: 189/255, alpha: 1)
public static let base: NSColor = NSColor(red: 158/255, green: 158/255, blue: 158/255, alpha: 1) public static let base = NSColor(red: 158/255, green: 158/255, blue: 158/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 117/255, green: 117/255, blue: 117/255, alpha: 1) public static let darken1 = NSColor(red: 117/255, green: 117/255, blue: 117/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 97/255, green: 97/255, blue: 97/255, alpha: 1) public static let darken2 = NSColor(red: 97/255, green: 97/255, blue: 97/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 66/255, green: 66/255, blue: 66/255, alpha: 1) public static let darken3 = NSColor(red: 66/255, green: 66/255, blue: 66/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 33/255, green: 33/255, blue: 33/255, alpha: 1) public static let darken4 = NSColor(red: 33/255, green: 33/255, blue: 33/255, alpha: 1)
} }
// blue grey // blue grey
public struct blueGrey { public struct blueGrey {
public static let lighten5: NSColor = NSColor(red: 236/255, green: 239/255, blue: 241/255, alpha: 1) public static let lighten5 = NSColor(red: 236/255, green: 239/255, blue: 241/255, alpha: 1)
public static let lighten4: NSColor = NSColor(red: 207/255, green: 216/255, blue: 220/255, alpha: 1) public static let lighten4 = NSColor(red: 207/255, green: 216/255, blue: 220/255, alpha: 1)
public static let lighten3: NSColor = NSColor(red: 176/255, green: 190/255, blue: 197/255, alpha: 1) public static let lighten3 = NSColor(red: 176/255, green: 190/255, blue: 197/255, alpha: 1)
public static let lighten2: NSColor = NSColor(red: 144/255, green: 164/255, blue: 174/255, alpha: 1) public static let lighten2 = NSColor(red: 144/255, green: 164/255, blue: 174/255, alpha: 1)
public static let lighten1: NSColor = NSColor(red: 120/255, green: 144/255, blue: 156/255, alpha: 1) public static let lighten1 = NSColor(red: 120/255, green: 144/255, blue: 156/255, alpha: 1)
public static let base: NSColor = NSColor(red: 96/255, green: 125/255, blue: 139/255, alpha: 1) public static let base = NSColor(red: 96/255, green: 125/255, blue: 139/255, alpha: 1)
public static let darken1: NSColor = NSColor(red: 84/255, green: 110/255, blue: 122/255, alpha: 1) public static let darken1 = NSColor(red: 84/255, green: 110/255, blue: 122/255, alpha: 1)
public static let darken2: NSColor = NSColor(red: 69/255, green: 90/255, blue: 100/255, alpha: 1) public static let darken2 = NSColor(red: 69/255, green: 90/255, blue: 100/255, alpha: 1)
public static let darken3: NSColor = NSColor(red: 55/255, green: 71/255, blue: 79/255, alpha: 1) public static let darken3 = NSColor(red: 55/255, green: 71/255, blue: 79/255, alpha: 1)
public static let darken4: NSColor = NSColor(red: 38/255, green: 50/255, blue: 56/255, alpha: 1) public static let darken4 = NSColor(red: 38/255, green: 50/255, blue: 56/255, alpha: 1)
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment