Post

Replies

Boosts

Views

Activity

Reply to .usesFontLeading gives a different height
I couldn't find any information on this, this is what I what I think. UILabels don't have a NSLayoutManager where the default value for .usesFontLeading is true, if that's true, then this is how it goes: boundingRect doesn't require the usesFontLeading option in my cause because I'm only using UILabel and not UITextView, bigger code repositories use .usesFontLeading because they either solely rely on UITextView or want to make their apps more inclusive of elements. That's what I think, I won't mark this post as the answer because there is no proof backing up my hypothesis. If any one of you know why that is the case, then feel free to post your answer. Hopefully this helps someone. Cheers.
Sep ’21
Reply to SwiftUI Laggy on a Real Device
Almost 8 months later, and here are my thoughts on the issue, 8 months ago, SwiftUI was pretty new and had a lot of hidden bugs, especially in testing. The problem I think I had was that when testing in debug mode, the system would perform more calculations and since I was rendering a lot of images in LazyVStack, which is good for lazy-loading but throttles when you feed in too much stuff, after scrolling through 25 images, the LazyVStack started throttling which caused the app to freeze. This is my own thinking, Apple never responded back, even though I used one of my incidents, and even sent all the copyrighted code. My solution to this problem was: Just migrate to UIKit, SwiftUI is too young for complex applications with a lot of images and network requests, it just can't handle all the pressure. Hopefully this helps someone.
Sep ’21
Reply to Database or Server to host a group of users?
Building an app is like building a web app, you share data with the server and store all of it on a database which is on the same server as your API. Unless you wanna use a server less solution, my best bet for a server less solution would be Firebase, if you are down for an API based approach, then build an API using Express, Django, whatever, and use MySQL, PostgreSQL, Cassandra for your database. To get started with APIs, you can go here: https://www.youtube.com/watch?v=-MTSQjw5DrM Not my channel, Fireship also has tutorials for mobile apps, firebase, etc.
Sep ’21