Closed black-lotus closed 6 years ago
Change text aligment based on user specification
enum MyDropState: DropStatable { case Stockbit var backgroundColor: UIColor? { switch self { case .Stockbit: return UIColor.white } } var font: UIFont? { switch self { case .Stockbit: return UIFont.proxymanovaRegular(ofSize: 14) } } var textColor: UIColor? { switch self { case .Stockbit: return UIColor(red: 58/255, green: 58/255, blue: 58/255, alpha: 1) } } var blurEffect: UIBlurEffect? { switch self { case .Stockbit: return nil } } var textAlignment: NSTextAlignment? { switch self { case .Stockbit: return NSTextAlignment.left } } }
Sorry for late reply. Merged! Thanks!
Change text aligment based on user specification