목록TabView (1)
Where who wants to meet someone

var body: some View { TabView(content: { TestView() .tabItem { Label("탭 1", systemImage: "house") } }) } 위와 같이 TabView 안에 View를 넣고 tabItem modifier를 적용하면 다음과 같이 화면에 보인다 그러나 이 앱에서 내가 원하는 색이 있는데, 어떻게 바꿀 수 있을까 하고 시도한 결과 background, foreground 다 적용이 안되더라.. 검색 결과 accentColor를 사용했던 것 같은데 accentColor(_:) | Apple Developer Documentation Sets the accent color for this view and the views it contains. deve..
Apple Developer/iOS(SwiftUI)
2024. 1. 27. 17:31