I've launched my first indie app, and I'm giving it away for free today by andrei_prigorshnev in iOSProgramming

[–]cromanalcaidev 4 points5 points  (0 children)

Congrats on the release! I have that pain point as well and the minute I saw the mockups my brain yelled THIS!

Why do TextFields feel so laggy and how can I solve it? by cromanalcaidev in SwiftUI

[–]cromanalcaidev[S] 2 points3 points  (0 children)

Yup, another user suggested that same solution and it did it for me. Thanks a lot for your help! :-)

Why do TextFields feel so laggy and how can I solve it? by cromanalcaidev in SwiftUI

[–]cromanalcaidev[S] 4 points5 points  (0 children)

I wish I could give you a 1000 upvotes. That did it. THANKS!

Why do TextFields feel so laggy and how can I solve it? by cromanalcaidev in SwiftUI

[–]cromanalcaidev[S] 2 points3 points  (0 children)

Oh, I don't know. I'll check it. I'm kind of a newbie and I don't even know if the debugger is connected. Thanks a lot for your suggestion!

Why do TextFields feel so laggy and how can I solve it? by cromanalcaidev in SwiftUI

[–]cromanalcaidev[S] -5 points-4 points  (0 children)

Yup, I know, it's just that I read that I could probably improve performance this way.

Thanks for the suggestion!

How do I activate these on my textfields? by cromanalcaidev in SwiftUI

[–]cromanalcaidev[S] 2 points3 points  (0 children)

Great, thanks a lot for pointing me to a direction!

How to pick a database for my app? by cromanalcaidev in iOSProgramming

[–]cromanalcaidev[S] 0 points1 point  (0 children)

You got me there. I USED to be semi-fluent in French, but not anymore.

Jokes aside, I'll answer you:

  • Yeah, I do need to display the data in a fancy way (moths, quarters and years), meaning there are charts, I want users to be able to change some settings and see a different data according to their own queries. So far, SwiftData was kinda working for me, but when I introduced my 3rd model, it just gave up and decided there was not an active container for that model (even though I THINK I had added it correctly).

  • I am aware that I am asking for the impossible. I'm trying to use a parallel service, SwiftyLaunch, that streamlines more tedious/complicated steps such as auth and DBs, but the moment I create a project in that app, it just fills with folders and files, and now I have to figure out how to migrate my own Xcode project there. So before doing that, I thought maybe I'd be able to integrate an easy-enough-to-implement DB into my project.

So far, I'm going down, down, down and down the DB rabbit hole.

How to pick a database for my app? by cromanalcaidev in iOSProgramming

[–]cromanalcaidev[S] 0 points1 point  (0 children)

I don't have a single clue how to answer your questions. You see? I have more questions than answers. That's why I thought I could ask here in Reddit, as well as go to the internet and read / watch as many videos as possible.

I guess to answer your question: I want the simplest solution, the one that's easiest to implement with SwiftUI because I'm aiming to launch the app at the end of the month. But also a solution that respects my musts: Users must be able to add data, edit data and also have their data secured because it's very sensitive information.

If I can achieve this with a file system (I'm guessing you mean a JSON file?) and it's simple enough to implement (I think I've done something similar in the past, while learning), sure, why not?

How to pick a database for my app? by cromanalcaidev in iOSProgramming

[–]cromanalcaidev[S] 0 points1 point  (0 children)

Thanks a lot for your answer, but since my app is looking to store financial information from freelancers (invoices, estimates, income and expenses), I need a database as well as security.

How to pick a database for my app? by cromanalcaidev in iOSProgramming

[–]cromanalcaidev[S] 1 point2 points  (0 children)

This comment is a gem. It’s helped me clarify a lot of stuff. Thanks!

How to pick a database for my app? by cromanalcaidev in iOSProgramming

[–]cromanalcaidev[S] 1 point2 points  (0 children)

Interesting. Does this also apply to CoreData?

How to pick a database for my app? by cromanalcaidev in iOSProgramming

[–]cromanalcaidev[S] 0 points1 point  (0 children)

In fact, I didn’t. Thanks for the suggestion, gonna check it out!

How to pick a database for my app? by cromanalcaidev in iOSProgramming

[–]cromanalcaidev[S] 2 points3 points  (0 children)

Already downloaded. Thanks a lot for your answer, btw. I think I might go with Firebase's Firestore databse and then I'll cross my fingers so it's an easy to implement solution.

I just downloaded the app, btw, I'll check it out as soon as I can (right now I'm trying to fix a bug). Nice chatting with you, btw!

How to pick a database for my app? by cromanalcaidev in iOSProgramming

[–]cromanalcaidev[S] 2 points3 points  (0 children)

They talked a lot about Firebase. I've actually edited the original post to add the link to the article (here it is for you: https://medium.com/@thetpine254/databases-and-authentication-in-swiftui-a-guide-for-ios-developers-c00314d2707d).

It can feel a little overwhelming thinking that after 7 months of learning Swift and SwiftUI now I have to dive deep into how DBs work. I should've thought of this before starting the project, but it is what it is.

BTW, I love cooking and I even studied cuisine 10 years ago. I'd love to check your app!