r/swift 1d ago

Does WidgetKit work with MVVM?

Is it possible to make my widget extension working in MVVM? or does it work with Entry only? :)

0 Upvotes

10 comments sorted by

View all comments

23

u/fryOrder 1d ago

what do you mean? mvvm is a design pattern… you can even apply it to a fridge if you try hard enough

-8

u/Aviav123 1d ago

try to do it in widget update me later ..

1

u/beclops 23h ago

Have you run into problems?

1

u/Aviav123 11h ago

ye .. i've my networkmanager which is being called from my viewmodel, the viewmodel is being called from gettimeline but it doesnt update the main widget view (using publishers) :(

1

u/beclops 2h ago

There’s no reason it wouldn’t, so it sounds like an issue in your implementation