
@State화면 동작에 있어 상태를 나타내는 변수가 사용되는 경우해당 변수가 상태를 나타냄을 표시 해줍니다struct PlayerView: View { let episode: Episode @State private var isPlaying: Bool = false var body: some View { VStack(spacing: 20) { Text(episode.title) .font(.largeTitle) Text(episode.showTitle) .font(.title3) .foregroundColor(.gray) ..

TextView 기본 Text("SwiftUI") 수정 Text("SwiftUI") .font( .system( size: 30, weight: .bold, design: .default )) 결과물 ButtonView 기본 Button { print("button tapped") } label: { print("click me") } 수정 Button { print("button tapped") } label: { Text("click me") .font( .system( size: 20, weight: .bold, design: .default) ) .foregroundColor(.white) .padding() } .padding() .frame(height: 100) .background(.pin..