Closed Jinsujin closed 1 year ago
Image 를 보여주는 방법들
Asset Image
Image("이미지 이름") .resizable() .aspectRatio(contentMode: .fill) .frame(width: 200, height: 200) .clipped() .background(.orange)
Image("이미지 이름") .resizable() .scaledToFill() // .aspectRatio(contentMode: .fill) 와 동일한 효과 .frame(width: 200, height: 200)
System symbol image
Image(systemName: "heart.fill") .resizable() .aspectRatio(contentMode: .fit) .frame(width: 100, height: 100)
문서 바로가기
Asset Image
System symbol image