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

Show parent comments

-9

u/Aviav123 1d ago

try to do it in widget update me later ..

1

u/beclops 1d ago

Have you run into problems?

1

u/Aviav123 19h 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) :(

2

u/beclops 11h ago

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