Post

Replies

Boosts

Views

Activity

Reply to Blurred selected button on tvOS
I added the button style .glass but this does not change anything. Button styles .bordered, .plain.or .glassProminent produce a sharp selected button. Button styles .glass or .automatic to a blurred selection. struct ContentView: View { @State private var items = [ "Item 1", "Item 2", "Item 3", "Item 4"] var body: some View { ZStack { Image(systemName: "globe") .resizable() List(items, id: \.self) { item in Button(action: {}, label: { Text(item) }) .buttonStyle(.glass) } .padding() .glassEffect(in: Rectangle()) } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
6d