1234567891011121314151617181920212223242526272829 |
- import Foundation
- final class ToastTextView: UILabel {
-
- override init(frame: CGRect) {
- super.init(frame: frame)
- }
-
- convenience init(text: String, option: ToastOption) {
- self.init(frame: CGRect.zero)
- self.text = text
- numberOfLines = 0
- textColor = option.tintColor
- font = UIFont.systemFont(ofSize: 14)
- }
-
- required init?(coder aDecoder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
- }
|