SwiftUI의 주요 프로퍼티 래퍼 탐색: @State, @Binding, @StateObject, @ObservedObject, @EnvironmentObject, 그리고 @Environment
https://fatbobman.com/en/posts/exploring-key-property-wrappers-in-swiftui/ Exploring Key Property Wrappers in SwiftUI: @State, @Binding, @StateObject, @ObservedObject, @EnvironmentObject, and @Environmen In this article, we will explore several property wrappers that are frequently used and crucial in SwiftUI development. This article aims to provide an overview of the main functions and usage c..
SwiftUI Bordering (inside, half, outside)
extension View { func insideBorder( _ content: C, shape: S = Rectangle(), lineWidth: CGFloat = 1 ) -> some View where C: ShapeStyle, S: InsettableShape { overlay( shape .strokeBorder(content, lineWidth: lineWidth) ) } func halfBorder( _ content: C, shape: S = Rectangle(), lineWidth: CGFloat = 1 ) -> some View where C: ShapeStyle, S: InsettableShape { overlay( shape .stroke(content, lineWidth: li..