-
Notifications
You must be signed in to change notification settings - Fork 1
/
TextStyleDesignables.swift
42 lines (37 loc) · 1.27 KB
/
TextStyleDesignables.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// TextStyleDesignables.swift
// TextStyle
//
// Created by Domas on 01/26/2017.
// Copyright © 2016 Trafi. All rights reserved.
//
import UIKit
import TextStyle
/// `UILabel` that renders in Interface Builder as an `@IBDesignbale`
@IBDesignable public class UILabelDesignable: UILabel, IBTextStylable {
@IBInspectable public var textStyle: String {
get { return "" }
set { set(textStyleIBString: newValue) }
}
}
/// `UITextField` that renders in Interface Builder as an `@IBDesignbale`
@IBDesignable public class UITextFieldDesignable: UITextField, IBTextStylable {
@IBInspectable public var textStyle: String {
get { return "" }
set { set(textStyleIBString: newValue) }
}
}
/// `UITextView` that renders in Interface Builder as an `@IBDesignbale`
@IBDesignable public class UITextViewDesignable: UITextView, IBTextStylable {
@IBInspectable public var textStyle: String {
get { return "" }
set { set(textStyleIBString: newValue) }
}
}
/// `Button` that renders in Interface Builder as an `@IBDesignbale`
@IBDesignable public class UIButtonDesignable: UIButton, IBTextStylable {
@IBInspectable public var textStyle: String {
get { return "" }
set { set(textStyleIBString: newValue) }
}
}