This enables building custom menus like this that allow triggering an action with a single long press.
This enables building custom menus like this that allow triggering an action with a single long press.
swiftwithmajid.com/2026/04/06/b...
swiftwithmajid.com/2026/04/06/b...
buttonStyle(.glass) = .glassEffect(.regular.interactive(), in: .circle)
Using buttonStyle(.glass) + buttomBorderShape(.circle) shows another circle within the button when touched 🫤
And glassEffect(in: .circle) doesn’t render the same visual effect when touched 😞
buttonStyle(.glass) = .glassEffect(.regular.interactive(), in: .circle)
Much to be done, of course, but it's at least vaguely usable!
Much to be done, of course, but it's at least vaguely usable!
Explore it yourself here:
exploreswiftui.com/library/butt...
FB24397477
#iOSDev #SwiftUI
Explore it yourself here:
exploreswiftui.com/library/butt...
FB24397477
#iOSDev #SwiftUI
💡Use the Link component with buttonStyle modifiers like .bordered and .borderedProminent, plus shape modifiers like .capsule or .roundedRectangle for beautiful, tappable links.
👉Free #SwiftUI picture book at bigmtn.studio
💡Use the Link component with buttonStyle modifiers like .bordered and .borderedProminent, plus shape modifiers like .capsule or .roundedRectangle for beautiful, tappable links.
👉Free #SwiftUI picture book at bigmtn.studio
This disables the default whole-row tap target behavior (which causes this funky stuff)
This disables the default whole-row tap target behavior (which causes this funky stuff)
It will be of help to you if you want to implement custom styles in your views in the future.
It can be used in the same way as #SwiftUI 's List, and I tried to minimize differences in appearance between platforms.
How about creating UI for help, acknowledgements, etc.?
github.com/KC-2001MS/Ar...
It will be of help to you if you want to implement custom styles in your views in the future.
TIL a button in a `tabViewBottomAccessory` with a `buttonStyle` applied to it will cause AttributeGraph to cycle, so an `onTapGesture` it is!
TIL a button in a `tabViewBottomAccessory` with a `buttonStyle` applied to it will cause AttributeGraph to cycle, so an `onTapGesture` it is!
Apply the Liquid Glass design to your buttons using .glass or .glassProminent with the buttonStyle() modifier.
Learn iOS development visually:
learnandcodewithenid.com
Apply the Liquid Glass design to your buttons using .glass or .glassProminent with the buttonStyle() modifier.
Learn iOS development visually:
learnandcodewithenid.com
```
struct WTF: View {
var body: some View {
TabView { Tab { Text("First") } }
.tabViewBottomAccessory {
Button("Press me") { print("pressed") }
.buttonStyle(.glassProminent)
}
}
}
```
```
struct WTF: View {
var body: some View {
TabView { Tab { Text("First") } }
.tabViewBottomAccessory {
Button("Press me") { print("pressed") }
.buttonStyle(.glassProminent)
}
}
}
```
.sharedBackgroundVisibility(.hidden) might suppress the system's glass effect, but you might want to experiment with:
.buttonStyle(.glassProminent)
.tint(.red)
.sharedBackgroundVisibility(.hidden) might suppress the system's glass effect, but you might want to experiment with:
.buttonStyle(.glassProminent)
.tint(.red)
Using buttonStyle(.glass) + buttomBorderShape(.circle) shows another circle within the button when touched 🫤
And glassEffect(in: .circle) doesn’t render the same visual effect when touched 😞
Using buttonStyle(.glass) + buttomBorderShape(.circle) shows another circle within the button when touched 🫤
And glassEffect(in: .circle) doesn’t render the same visual effect when touched 😞
My memory was that this was exposed thru the environment, but apparently it's via a Shape extension (ButtonBorderShape.buttonShape), but that appears to always […]
My memory was that this was exposed thru the environment, but apparently it's via a Shape extension (ButtonBorderShape.buttonShape), but that appears to always […]