Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

0
Swiftui feels hacky
Post Flair (click to view more posts with a particular flair)
Post Body

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!

Author
Account Strength
40%
Account Age
6 months
Verified Email
Yes
Verified Flair
No
Total Karma
22
Link Karma
15
Comment Karma
7
Profile updated: 1 day ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 months ago