RoundedRectangle(cornerRadius: 20, style: .continuous)
.frame(width: 300, height: 240)
RoundedRectangle(cornerRadius: 20, style: .continuous)
.frame(width: 150, height: 400)
.foregroundStyle(LinearGradient(gradient: Gradient(colors: [Color(.blue), Color(.gray)]), startPoint: .top, endPoint: .bottom))
.rotationEffect(.degrees(rotation))
.mask {
RoundedRectangle(cornerRadius: 20, style: .continuous)
.stroke(lineWidth: 7)
.frame(width: 296, height: 236)
}
'SwiftUI' 카테고리의 다른 글
WWDC 2022 BackgroundTask (0) | 2024.04.02 |
---|---|
Could not first-time schedule app refresh: Error Domain=BGTaskSchedulerErrorDomain Code=3 (0) | 2024.04.02 |
SwiftUI - 클래스 간 데이터 교환, 의존성 주입 (0) | 2024.03.27 |
Bindable (0) | 2024.03.20 |
Referencing instance method 'setValue(forKey:to:)' on 'Optional' requires that conform to 'PersistentModel' (0) | 2024.03.18 |