@@ -138,7 +138,7 @@ class ObjectsDetailsViewController: UIViewController {
138
138
button1. setIcon ( icon: . linearIcons( . phone) , forState: . normal)
139
139
140
140
let button2 = UIButton ( frame: CGRect ( x: screenWidth/ 2 + 20 , y: 20 , width: screenWidth/ 2 - 40 , height: screenWidth/ 2 - 40 ) )
141
- button2. setIcon ( icon: . openIconic( . clipboard) , iconSize: 70 , color: textColor, forState: . normal)
141
+ button2. setIcon ( icon: . openIconic( . clipboard) , iconSize: 70 , color: textColor, backgroundColor : . blue , forState: . normal)
142
142
143
143
let button3 = UIButton ( frame: CGRect ( x: 20 , y: screenWidth/ 2 , width: screenWidth/ 2 - 40 , height: screenWidth/ 2 - 40 ) )
144
144
button3. setIcon ( prefixText: " Please " , icon: . googleMaterialDesign( . print) , postfixText: " print " , forState: . normal)
@@ -147,11 +147,11 @@ class ObjectsDetailsViewController: UIViewController {
147
147
button4. setIcon ( prefixText: " Happy " , prefixTextFont: font1!, icon: . ionicons( . happy) , postfixText: " face " , postfixTextFont: font2!, forState: . normal)
148
148
149
149
let button5 = UIButton ( frame: CGRect ( x: 20 , y: screenWidth- 20 , width: screenWidth/ 2 - 40 , height: screenWidth/ 2 - 40 ) )
150
- button5. setIcon ( prefixText: " Lock " , prefixTextColor: . red, icon: . googleMaterialDesign( . lock) , iconColor: textColor, postfixText: " icon " , postfixTextColor: . blue, forState: . normal, textSize: 15 , iconSize: 20 )
151
-
150
+ button5. setIcon ( prefixText: " Lock " , prefixTextColor: . red, icon: . googleMaterialDesign( . lock) , iconColor: textColor, postfixText: " icon " , postfixTextColor: . blue, backgroundColor : . yellow , forState: . normal, textSize: 15 , iconSize: 20 )
151
+
152
152
let button6 = UIButton ( frame: CGRect ( x: screenWidth/ 2 + 20 , y: screenWidth- 20 , width: screenWidth/ 2 - 40 , height: screenWidth/ 2 - 40 ) )
153
153
button6. setIcon ( prefixText: " Pulse " , prefixTextFont: font1!, prefixTextColor: . darkGray, icon: . openIconic( . pulse) , iconColor: textColor, postfixText: " icon " , postfixTextFont: font2!, postfixTextColor: . purple, forState: . normal, iconSize: 40 )
154
-
154
+
155
155
scrollView. addSubview ( button1)
156
156
scrollView. addSubview ( button2)
157
157
scrollView. addSubview ( button3)
@@ -180,8 +180,7 @@ class ObjectsDetailsViewController: UIViewController {
180
180
scrollView. addSubview ( segmentedControl2)
181
181
break
182
182
183
- case 5 :
184
-
183
+ case 5 :
185
184
break
186
185
187
186
case 6 :
@@ -243,6 +242,8 @@ class ObjectsDetailsViewController: UIViewController {
243
242
scrollView. addSubview ( textfield4)
244
243
scrollView. addSubview ( textfield5)
245
244
scrollView. addSubview ( textfield6)
245
+
246
+ scrollView. contentSize = CGSize ( width: screenWidth, height: 3 * screenWidth/ 2 - 40 )
246
247
break
247
248
case 10 :
248
249
let stepper1 = UIStepper ( frame: CGRect ( x: 20 , y: 20 , width: screenWidth/ 2 - 40 , height: 40 ) )
0 commit comments