Skip to content

Instantly share code, notes, and snippets.

View ignatovSA's full-sized avatar

Simon Ignatov ignatovSA

View GitHub Profile
import UIKit
public struct TextStyle {
let font: UIFont
let color: UIColor
let kerning: CGFloat?
let lineHeight: CGFloat?
}
import UIKit
class LinearGradientLayer: CALayer {
public var colorSpace = CGColorSpaceCreateDeviceRGB()
public var colors: [CGColor]?
public var locations: [CGFloat]?
public var startPoint: CGPoint?
public var endPoint: CGPoint?