This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hey everyone, I've been diving into SwiftUI lately and I've noticed something. Does it seem a bit hacky to you too?
For example, I found myself wanting to customise simple things like the size of icons in the bottom tab bar, but for some reason, resizing them wasn't working as expected. So, I ended up creating my own bottom tab bar from scratch.
Then, I had to programmatically control when to hide or show my custom bottom bar. When navigating back, I wanted the bottom bar to reappear, so I tried doing this in the onDisappear
code block. Sounds straightforward, right? But it turned out that it took a few milliseconds to execute due to iOS animations sliding from right to left when navigating back. This forced me to create my own custom back button.
If any of you have experience with SwiftUI and think my approach is off-base, I'd appreciate any guidance or pointers in the right direction. I've worked with Jetpack Compose and Flutter before, and I'm just getting started with SwiftUI. Thanks!
Subreddit
Post Details
- Posted
- 6 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/SwiftUI/com...