@@ -27,61 +27,61 @@ class HorizontalAlignmentViewController: UIViewController {
2727 }
2828
2929 view = LMScrollView ( isFitToWidth: true , backgroundColor: . white,
30- LMColumnView ( margin: 8 ,
30+ LMColumnView ( margin: 8 ) {
3131 // Leading alignment
32- UILabel ( text: " Leading " , font: . systemFont( ofSize: 14 ) ) ,
32+ UILabel ( text: " Leading " , font: . systemFont( ofSize: 14 ) )
3333
34- LMRowView ( margin: 8 , horizontalAlignment: . leading, with: cellStyle,
35- UIImageView ( image: phoneIcon, tintColor: . black) ,
36- UIImageView ( image: faxIcon, tintColor: . black) ,
34+ LMRowView ( margin: 8 , horizontalAlignment: . leading, with: cellStyle) {
35+ UIImageView ( image: phoneIcon, tintColor: . black)
36+ UIImageView ( image: faxIcon, tintColor: . black)
3737 UIImageView ( image: emailIcon, tintColor: . black)
38- ) ,
38+ }
3939
40- LMColumnView ( margin: 8 , horizontalAlignment: . leading, with: cellStyle,
41- UIImageView ( image: phoneIcon, tintColor: . black) ,
42- UIImageView ( image: faxIcon, tintColor: . black) ,
40+ LMColumnView ( margin: 8 , horizontalAlignment: . leading, with: cellStyle) {
41+ UIImageView ( image: phoneIcon, tintColor: . black)
42+ UIImageView ( image: faxIcon, tintColor: . black)
4343 UIImageView ( image: emailIcon, tintColor: . black)
44- ) ,
44+ }
4545
46- LMSpacer ( height: 0.5 , backgroundColor: . gray) ,
46+ LMSpacer ( height: 0.5 , backgroundColor: . gray)
4747
4848 // Trailing alignment
49- UILabel ( text: " Trailing " , font: . systemFont( ofSize: 14 ) ) ,
49+ UILabel ( text: " Trailing " , font: . systemFont( ofSize: 14 ) )
5050
51- LMRowView ( margin: 8 , horizontalAlignment: . trailing, with: cellStyle,
52- UIImageView ( image: phoneIcon, tintColor: . black) ,
53- UIImageView ( image: faxIcon, tintColor: . black) ,
51+ LMRowView ( margin: 8 , horizontalAlignment: . trailing, with: cellStyle) {
52+ UIImageView ( image: phoneIcon, tintColor: . black)
53+ UIImageView ( image: faxIcon, tintColor: . black)
5454 UIImageView ( image: emailIcon, tintColor: . black)
55- ) ,
55+ }
5656
57- LMColumnView ( margin: 8 , horizontalAlignment: . trailing, with: cellStyle,
58- UIImageView ( image: phoneIcon, tintColor: . black) ,
59- UIImageView ( image: faxIcon, tintColor: . black) ,
57+ LMColumnView ( margin: 8 , horizontalAlignment: . trailing, with: cellStyle) {
58+ UIImageView ( image: phoneIcon, tintColor: . black)
59+ UIImageView ( image: faxIcon, tintColor: . black)
6060 UIImageView ( image: emailIcon, tintColor: . black)
61- ) ,
61+ }
6262
63- LMSpacer ( height: 0.5 , backgroundColor: . gray) ,
63+ LMSpacer ( height: 0.5 , backgroundColor: . gray)
6464
6565 // Center alignment
66- UILabel ( text: " Center " , font: . systemFont( ofSize: 14 ) ) ,
66+ UILabel ( text: " Center " , font: . systemFont( ofSize: 14 ) )
6767
68- LMColumnView ( margin: 8 , horizontalAlignment: . center, with: cellStyle,
69- UIImageView ( image: phoneIcon, tintColor: . black) ,
70- UIImageView ( image: faxIcon, tintColor: . black) ,
68+ LMColumnView ( margin: 8 , horizontalAlignment: . center, with: cellStyle) {
69+ UIImageView ( image: phoneIcon, tintColor: . black)
70+ UIImageView ( image: faxIcon, tintColor: . black)
7171 UIImageView ( image: emailIcon, tintColor: . black)
72- ) ,
72+ }
7373
74- LMSpacer ( height: 0.5 , backgroundColor: . gray) ,
74+ LMSpacer ( height: 0.5 , backgroundColor: . gray)
7575
7676 // Fill alignment
77- UILabel ( text: " Fill " , font: . systemFont( ofSize: 14 ) ) ,
77+ UILabel ( text: " Fill " , font: . systemFont( ofSize: 14 ) )
7878
79- LMRowView ( margin: 8 , horizontalAlignment: . fill, with: cellStyle,
80- UIImageView ( image: phoneIcon, contentMode: . center, tintColor: . black, weight: 1 ) ,
81- UIImageView ( image: faxIcon, contentMode: . center, tintColor: . black, weight: 1 ) ,
79+ LMRowView ( margin: 8 , horizontalAlignment: . fill, with: cellStyle) {
80+ UIImageView ( image: phoneIcon, contentMode: . center, tintColor: . black, weight: 1 )
81+ UIImageView ( image: faxIcon, contentMode: . center, tintColor: . black, weight: 1 )
8282 UIImageView ( image: emailIcon, contentMode: . center, tintColor: . black, weight: 1 )
83- )
84- )
83+ }
84+ }
8585 )
8686 }
8787}
0 commit comments