Need to toggle between iconOnly and titleAndIcon label styles in SwiftUI? You can create your own custom LabelStyle and add some fun transition animations :D code below 👇
1 repost6 likes
Need to toggle between iconOnly and titleAndIcon label styles in SwiftUI? You can create your own custom LabelStyle and add some fun transition animations :D code below 👇
1 repost6 likes
Thanks for sharing! You might even not need the matchedGeometryEffect. Unfortunately I wasn't able to pass a generic transition to make the toggle effect completely customised (or only provide an AnyTransition which does not include all transitions like blurReplace). cc @matt1corey.bsky.social