updated anchors
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
4dc8899756
commit
162f58f7d4
@ -32,12 +32,15 @@ class ButtonViewController: BaseViewController {
|
|||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
let view = UIView()
|
let view = UIView()
|
||||||
view.translatesAutoresizingMaskIntoConstraints = false
|
view.translatesAutoresizingMaskIntoConstraints = false
|
||||||
view.addSubview(button)
|
view.addSubview(button)
|
||||||
button.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
|
button.pinTop()
|
||||||
button.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
|
button.pinBottom()
|
||||||
button.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
|
button.pinLeading()
|
||||||
|
button.trailingAnchor.constraint(lessThanOrEqualTo: view.trailingAnchor).isActive = true
|
||||||
|
|
||||||
addContentTopView(view: view)
|
addContentTopView(view: view)
|
||||||
|
|
||||||
setupForm()
|
setupForm()
|
||||||
|
|||||||
@ -27,9 +27,10 @@ class TextLinkCaretViewController: BaseViewController {
|
|||||||
let view = UIView()
|
let view = UIView()
|
||||||
view.translatesAutoresizingMaskIntoConstraints = false
|
view.translatesAutoresizingMaskIntoConstraints = false
|
||||||
view.addSubview(textLinkCaret)
|
view.addSubview(textLinkCaret)
|
||||||
textLinkCaret.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
|
textLinkCaret.pinTop()
|
||||||
textLinkCaret.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
|
textLinkCaret.pinBottom()
|
||||||
textLinkCaret.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
|
textLinkCaret.pinLeading()
|
||||||
|
textLinkCaret.trailingAnchor.constraint(lessThanOrEqualTo: view.trailingAnchor).isActive = true
|
||||||
addContentTopView(view: view)
|
addContentTopView(view: view)
|
||||||
|
|
||||||
setupForm()
|
setupForm()
|
||||||
|
|||||||
@ -27,9 +27,10 @@ class TextLinkViewController: BaseViewController {
|
|||||||
let view = UIView()
|
let view = UIView()
|
||||||
view.translatesAutoresizingMaskIntoConstraints = false
|
view.translatesAutoresizingMaskIntoConstraints = false
|
||||||
view.addSubview(textLink)
|
view.addSubview(textLink)
|
||||||
textLink.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
|
textLink.pinTop()
|
||||||
textLink.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
|
textLink.pinBottom()
|
||||||
textLink.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
|
textLink.pinLeading()
|
||||||
|
textLink.trailingAnchor.constraint(lessThanOrEqualTo: view.trailingAnchor).isActive = true
|
||||||
addContentTopView(view: view)
|
addContentTopView(view: view)
|
||||||
|
|
||||||
setupForm()
|
setupForm()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user