Post

Replies

Boosts

Views

Activity

Reply to visionOS: Button Frame modifier bugged?
Unfortunately cannot edit anymore, but here's the result when I apply the modifiers on the label itself, even applying .clipShape(.rect) to the button, it stays a capsule: struct HostCell: View { var body: some View { Button(action: {print("Salut")}, label: { Image(systemName: "plus").frame(width: 200, height: 200).background(.red).cornerRadius(30).hoverEffect() }) } } Result:
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’23