- 전체보기
- 상수와 변수
- CocoaPods 설치
- SwiftUI에서 AppDelegate 추가하기
- Multiple commands produce 에러
- NavigationStack iOS 16부터 지원
- 코드 자동 정렬 단축키
- var body: some View 안에서 print 하기
- framework not found GoogleMapsCore 에러
- Untrusted Developer 표시가 난다면
- Cannot find type 'CLLocationCoordinate2D' in scope 에러가 난다면
- VStack 글자 정렬
- AsyncImage 이용해서 외부 이미지 불러와서 보여주기
Swift - VStack 글자 정렬
조회수: 109
이렇게 했는데 글자 정렬이 안 되어 있다면
VStack() {
Text("aaaa")
Text("bbbb")
}
VStack에 alignment를 leading으로 설정하면 정렬이 된다.
VStack(alignment: .leading) {
Text("aaaa")
Text("bbbb")
}