Jesly Varghese

@jesly
17 Followers
294 Following
37 Posts
Mostly Swift & iOS things!!

@Alexjusino
The requirement to have consumable that give access to customer for 1 year is bit absurd from the reviewer.

Apple in their review guidelines states that you can have the option of subscriptions as long as users get consistent and substantive updates.

One pattern I see is to offer a life time purchase along with subscriptions which might satisfy what the reviewer is pointing it.

Hope you get your in app purchase through without much hassle!

@Alexjusino Cannot make a recommendation without understanding the context of the rejection.

But sometimes it can be faster to just re-submit

I am having a hard time wrapping my head around MVVM with SwiftUI.

Whenever I use it, things feel wrong and hack-y. Unlike with UIKit.

In MVVM + SwiftUI, who owns the state ? Is it the ViewModel ? And who owns the ViewModel, the @State container ?
And how do you control the life time of your ViewModels ?

Feels like I am probably missing some good ideas around why it’s popular (other than an intermediate phase when codebases are migrating from UIKit).

Here's a neat trick with `async let` I didn't realize. You can use it to avoid blocking on synchronous work.

Any experienced programmer worth their salt will tell you that •producing• code — learning syntax, finding examples, combining them, adding behaviors, adding complexity — is the •easy• part of programming.

The hard part: “How can it break? How will it surprise us? How will it change? Does it •really• accomplish our goal? What •is• our goal? Are we all even imagining the same goal? Do we understand each other? Will the next person to work on this understand it? Should we even build this?”

@jsq 😂
“Building engineering” https://werd.io/2024/building-engineering
Building engineering

How I'm thinking about building an engineering culture.

Werd I/O

@jaredsinclair Great post! Small clarification on explicit view identity: the .id() modifier acts in *addition* to the structural identity defined by the view’s position in the view hierarchy. So .id() can never make two non-identical views identical, only the other way around. These two views have different identity despite having the same .id():

if flag {
MyView().id("one")
} else {
MyView().id("one")
}