You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Example/PinLayoutSample/UI/Examples/AdjustToContainer/AdjustToContainerView.swift
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -21,17 +21,19 @@ import UIKit
21
21
import PinLayout
22
22
23
23
classAdjustToContainerView:BaseView{
24
-
24
+
fileprivateletcontentView=UIView()
25
25
fileprivateletlanguageSelectorView=ChoiceSelectorView(text:"What is your favorite language?", choices:["Swift","Objective-C","C++"])
26
26
fileprivateletswiftOpinionSelectorView=ChoiceSelectorView(text:"Overall, are you satisfied with the Swift performance in your projects?", choices:["Yes","No"])
27
27
fileprivateletswiftUsageSelectorView=ChoiceSelectorView(text:"How often do you typically use Swift?", choices:["Daily","Weekly","Montly","Do not use"])
28
28
29
29
overrideinit(){
30
30
super.init()
31
31
32
-
addSubview(languageSelectorView)
33
-
addSubview(swiftOpinionSelectorView)
34
-
addSubview(swiftUsageSelectorView)
32
+
addSubview(contentView)
33
+
34
+
contentView.addSubview(languageSelectorView)
35
+
contentView.addSubview(swiftOpinionSelectorView)
36
+
contentView.addSubview(swiftUsageSelectorView)
35
37
}
36
38
37
39
requiredinit?(coder aDecoder:NSCoder){
@@ -41,7 +43,10 @@ class AdjustToContainerView: BaseView {
0 commit comments