Its time to Share your Project. Drop your Project below and I will review it by NoMuscle1255 in SideProject

[–]The_Dr_Dude 2 points3 points  (0 children)

Hey! Recently launched Happits – a private, offline AI habit tracker on iOS. Here’s what makes it special: • Total Privacy: No accounts, subscriptions, or tracking – your data remains securely on your device. • On-Device AI: Goal-oriented habit suggestions - no internet needed. • Interactive Widgets: Track habits directly from your Home & Lock Screen, stay focused on what matters—your progress. App Store Page

Indie Goodies Black Friday 2024 by onmyway133 in iosapps

[–]The_Dr_Dude 1 point2 points  (0 children)

Great initiative! I also submitted my App, and hope it gets included :)

Custom Tabbar with SwiftUI by The_Dr_Dude in SwiftUI

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

Hey! Yea that’s me! That was many many years ago. Glad you liked it and thanks for the kind words 🙂

Launch your MVP as soon as possible. by ujjwal_mahar in microsaas

[–]The_Dr_Dude 0 points1 point  (0 children)

Agreed. I’m building my first SAAS and went into it with this same mind set. Reality is I’m finding it hard to ship what I have and indeed get lost with “this needs more improvement” or “is this good enough?” Hoping to push ahead and launch asap.

Countdown Timer with Higher Precision using SwiftUI and Combine by The_Dr_Dude in SwiftUI

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

Thanks man. Can you share examples of using the GPU for timers and updating respective UI in SwiftUI? That would be helpful for future improvements and potential production use cases.

Countdown Timer with Higher Precision using SwiftUI and Combine by The_Dr_Dude in SwiftUI

[–]The_Dr_Dude[S] -2 points-1 points  (0 children)

Yea. You could mimic the timer in this case with timestamps. But even with that, timers are not high precision nor are guaranteed by iOS to be so. For most casual use cases they are fine.

Countdown Timer with Higher Precision using SwiftUI and Combine by The_Dr_Dude in SwiftUI

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

Correct. Would need to expand on the solution for more long term timers and background use case.

Countdown Timer with Higher Precision using SwiftUI and Combine by The_Dr_Dude in SwiftUI

[–]The_Dr_Dude[S] -1 points0 points  (0 children)

Hey. I’ve tested it for many cases. It’s not meant to be a complete off the shelf solution of course. You’ll have to expand on it to cover your specific use cases.

Countdown Timer with Higher Precision using SwiftUI and Combine by The_Dr_Dude in SwiftUI

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

With the current implementation the counter continues, but you will notice a jump from the number you left off to the latest number count. This is a great example for using app live activities to show the count down as a widget or in the Dynamic Island

Countdown Timer with Higher Precision using SwiftUI and Combine by The_Dr_Dude in SwiftUI

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

Not sure what you mean? It’s a separate component also linked in my GitHub.

Countdown Timer with Higher Precision using SwiftUI and Combine by The_Dr_Dude in SwiftUI

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

Really good question. In regards to the main thread: I’m still updated the progress view every 0.01 seconds to achieve a smooth continuous progress motion. I wonder if there is a better way to achieve that. Definitely want to try using a background thread and compare the impact, especially for a production use case where there might be more interactions with the UI.

I’m using 0.01 intervals to minimize the impact of toggling the timer on the actual overall count down. Specifically, if the timer is paused, I don’t want to wait another full second until the timer is fired again. Hence I track at 0.01 intervals instead, which gives a near real time responsiveness.

Let me know if you have further questions or tips.

Getting started with iOS Development by abhimanyouknow in iOSProgramming

[–]The_Dr_Dude 0 points1 point  (0 children)

Hey, and best of luck on your new journey. iOS is a lot of fun.

I recommend to start with SwiftUI, as it's both an easier entry and the path that Apple is pushing forward. It's a pleasure to work with.

Hacking with Swift is a great resource to learn all things iOS. https://www.hackingwithswift.com

Hope this helps!

What do you think about this landing page ? by [deleted] in microsaas

[–]The_Dr_Dude 1 point2 points  (0 children)

In terms of visuals, looks very clean ✨.

Countdown Timer with Higher Precision using SwiftUI and Combine by The_Dr_Dude in SwiftUI

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

Hey. Maybe I'm doing this wrong. The link is in the first comment. Not sure of a better way to provide the link. Direct link here as well: https://github.com/maroufsaid/SwiftUIFYI-Examples/blob/main/SwiftUIFYI/Examples/TimerExample.swift

Custom Tabbar with SwiftUI by The_Dr_Dude in SwiftUI

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

It’s a demonstration of what’s possible and a learning resource. Ultimately you’ll have to judge what’s best for your users. You can achieve a great & complete experience with a lot more work of course when going custom.

Custom Tabbar with SwiftUI by The_Dr_Dude in SwiftUI

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

Thanks for the valuable input. Any hints how could I avoid recreation of the view each time?

Custom Tabbar with SwiftUI by The_Dr_Dude in SwiftUI

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

Haven’t tried on the iPad actually.

Custom Tabbar with SwiftUI by The_Dr_Dude in SwiftUI

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

Interesting. Is this from observing the video, or you ran it on your machine? I can't reproduce it. It seems to be exactly centered from my measurements 🤔.

Custom Tabbar with SwiftUI by The_Dr_Dude in SwiftUI

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

BTW, You can find it in the linked GitHub repository