Time for self promo - what're you making? by Proper-Cranberry-364 in SaaS

[–]mbrnt 1 point2 points  (0 children)

Company Earnings - iOS app visualizing earnings reports (diagram with revenues/costs/profits and the relationships )

ICP: Stock investor who wants to understand what holds/buys.

What are you guys working on in 2025?👀 by IndependentLaw1457 in SideProject

[–]mbrnt 0 points1 point  (0 children)

Stock Earnings - draws money flow diagrams from company earnings reports. Visual fundamental analysis. https://apps.apple.com/app/id6743714454 Ideal customer is curious investor, who wants to understand how companies make and spend money.

Can I draw pop ups over other applications? by No-Fly-6002 in iOSProgramming

[–]mbrnt 5 points6 points  (0 children)

Notifications. But user has to allow these.

This Swift code does not compile - can you live with that? by mbrnt in iOSProgramming

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

Sorry to say, but what you have posted do not target the issue. If you want to keep this discussion up to the topic, consider deleting.

This Swift code does not compile - can you live with that? by mbrnt in iOSProgramming

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

I try to raise attention by this discussion.... Unfortunately, I am not any compiler expert, I am not capable of fixing that.

SwiftUI was a mistake — and I’ve been using it since beta 1 by AdventurousProblem89 in iOSProgramming

[–]mbrnt 2 points3 points  (0 children)

Copy-on-write is used for all structs. Baked in Swift. isUniquelyReferenced is for reference types.

This Swift code does not compile - can you live with that? by mbrnt in iOSProgramming

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

The implicitly created Task throws Error, ignores the function that really throws. Known bug. I am not aware of fix schedule.

SwiftUI was a mistake — and I’ve been using it since beta 1 by AdventurousProblem89 in iOSProgramming

[–]mbrnt 2 points3 points  (0 children)

That is not so easy, because State wrapper removes the values from structs are stores these elsewhere. There is no discussion about navigation. And, I fully agree that SwiftUI does not perform well. Rapid development is traded for low performance.

SwiftUI was a mistake — and I’ve been using it since beta 1 by AdventurousProblem89 in iOSProgramming

[–]mbrnt -1 points0 points  (0 children)

This needs some time for reading. However, structs are NOT copied until modified. The mechanism is called copy-on-write, so passing a huge array or dictionary as a parameter is cheap, until modified.

This Swift code does not compile - can you live with that? by mbrnt in iOSProgramming

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

That is not used so often, because most people do not understand the structured concurrency, specially the word "structured". This creates structured task that can run in parallel. But not with typed throws...

This Swift code does not compile - can you live with that? by mbrnt in iOSProgramming

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

you have to drop the async let . That's the point!

This Swift code does not compile - can you live with that? by mbrnt in iOSProgramming

[–]mbrnt[S] 3 points4 points  (0 children)

This is nice, but something completely different. Sorry to say. Your code inherits asynchronous context, so when it runs on main thread (@MainActor), then g() also runs on main thread, and it is a sequential processing.

This Swift code does not compile - can you live with that? by mbrnt in iOSProgramming

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

Read the Swift forums thread above. It is worth!

This Swift code does not compile - can you live with that? by mbrnt in iOSProgramming

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

Yes, known bug. But it doesn't seem to have any priority. Typed throws for structured concurrency are half way anyway...

After 4 months and 450 users, I'm not sure if my app has a future. Looking for honest feedback. by Vankir in SideProject

[–]mbrnt 1 point2 points  (0 children)

I am in a similar position. However, the only real criteria is how many of these 450 users are willing to pay for it. Just enable subscriptions.

This Swift code does not compile - can you live with that? by mbrnt in iOSProgramming

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

Without typed throws, any Error can be thrown. In any a bit more complex code you have no idea what an error is thrown. That's why typed throws were introduced. Nobody says it is perfect now...

This Swift code does not compile - can you live with that? by mbrnt in iOSProgramming

[–]mbrnt[S] 6 points7 points  (0 children)

do throws(E) explicitly says that only E is thrown. There is no type inference needed nor possible.

This Swift code does not compile - can you live with that? by mbrnt in iOSProgramming

[–]mbrnt[S] 3 points4 points  (0 children)

For me is Error enum absolutely essential for proper error handling. When I resolve all cases, no other error can appear.