I have the following toolbar button:
When I hover the button with a mouse on iPad, a rectangle with square corners appears. I've tried using the cornerRadius and clipShape modifiers to make the corners rounded with no luck. Is there a way to accomplish this in SwiftUI? I would like it match the hover effect on the navigation bar back button.
Code Block Button(action: {}, label: { Text("Button") .padding() }) .hoverEffect()
When I hover the button with a mouse on iPad, a rectangle with square corners appears. I've tried using the cornerRadius and clipShape modifiers to make the corners rounded with no luck. Is there a way to accomplish this in SwiftUI? I would like it match the hover effect on the navigation bar back button.