iOS/SwiftUI (1) 썸네일형 리스트형 SwiftUI에서 각각 다른 모서리에 cornerRadius 주는 법 Custom RoundedCorner각 모서리에 다른 반경을 적용할 수 있는 커스텀 Shape 정의struct RoundedCorner: Shape { var radius: CGFloat = .infinity var corners: UIRectCorner = .allCorners func path(in rect: CGRect) -> Path { let path = UIBezierPath(roundedRect: rect, byRoundingCorners: corners, cornerRadii: CGSize(width: radius, height: radius)) return Path(path.cgPath) }}Shape란?SwiftUI에서 custom 2d 도.. 이전 1 다음