constraints
-
UIKitPlus - ConstraintsLibrary 2021. 6. 19. 19:37
์๋ ํ์ธ์. ๊ทธ๋ฆฐ์ ๋๋ค๐ข ์ด๋ฒ ํฌ์คํ ์์๋ ์ด์ ์ ๊ฐ๋ตํ ํฌ์คํ ํด๋ณธ UIKitPlus์์ ์ ์ฝ์ ์ฃผ๋ ๋ฐฉ๋ฒ์ ๋ํด ์์๋ณด๊ฒ ์ต๋๋ค๐ง๐ป๐ป ๋จ๋ ์ ์ฝ 1. aspectRatio (๋น์จ) UView().aspectRatio() /// 1:1 low priority UView().aspectRatio(priority: .defaultLow) /// 2:1 UView().aspectRatio(2 / 1) /// 4:3 low priority UView().aspectRatio(priority: .defaultLow) 2. width / height (๋์ด / ๋์ด) /// 100pt UView().width(100) /// Stateable width @UState var width: CGFloat = 100 Vi..