Hi Albert,
I have created a reproducible example for you to try.
import SwiftUI
struct ContentView: View {
@State private var isBookmarked = false
var body: some View {
NavigationStack {
VStack {
Text(isBookmarked ? "Bookmarked" : "Not bookmarked")
}
.padding()
.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
Button(action: toggleBookmark) {
Image(systemName: isBookmarked ? "bookmark.fill" : "bookmark")
}
}
}
}
}
private func toggleBookmark() {
isBookmarked.toggle()
}
}
#Preview {
ContentView()
}
You can see in this simple example without any additional modifiers, that whole circular area is not tappable.
Also using
Circle()
.foregroundColor(.clear)
.frame(width: 54, height: 54)
still leaves some un-tappable area in item.