Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- SWIFT
- struct
- uikit
- array
- 고차함수
- viewlifecycle
- class
- Refresh
- Animation
- calendar
- Observer
- 글또
- list
- IOS
- self
- singleton
- Switch
- http
- PushNotification
- NotificationCenter
- SWIFTUI
- mvvm
- segue
- error
- escaping
- CoreImage
- 화면전환
- Git
- apns
- ScrollView
Archives
- Today
- Total
목록ambiguous use of toolbar (1)
seong_hye, the developer
오류 해결) Ambiguous use of toolbar 해결 방법
📌 Ambiguous use of toolbar 📌보통 SwiftUI의 .toolbar 수정자 (오버로드가 여러 개)와 내 코드/ 프레임워크의 이름 충돌 또는 모호한 클로저 형태 때문에 생김 ✅ 옳은 toolbar 사용 방법.toolbar {... } 안에 무엇을 넣는지에 따라 여러 오버로드가 매칭될 수 있음항상 배치와 래퍼 타입을 명시하는 것이 필요 ➡️ 단일 버튼일 경우NavigationStack { Text("test") .toolbar { ToolbarItem(placement: .navigationBarTrailing) { Button("Save") {...} } }} ➡️ 여러 버튼일 경우.toolbar { Toolbar..
IOS/Error
2025. 6. 26.