SwiftUI Image .cornerRadius(100) 이미지 둥글게
Image("LESSERAFIM") .resizable() .aspectRatio(contentMode: .fit) .padding() .cornerRadius(100) 위 코드는 padding() 이후에 cornerRadius를 설정한 화면이다. Image("LESSERAFIM") .resizable() .aspectRatio(contentMode: .fit) .cornerRadius(30) .padding() 패딩 설정 이후에 cornerRadius 를 설정하면 넓어진 공간이 같이 적용되는 것을 알 수 있었다.
2023.10.16