I don’t manage to update swift ui with kotlin states, looks like it does not function the way I expect .
I did a simple example to showcase the problem:
IOS:
It’s always 0 after clicks.
Am I missing something here?
a
Alexander Zhirkevich
04/19/2024, 11:30 AM
factory
lambda of UIKitViewController is called only 1 time during composition. To keep view controller updated you need to either pass something observable to it or explicitly mutate its properties from the
update
lambda
👍 3
d
Dovydas
03/09/2025, 5:55 PM
Would it be possible for you to post a code snippet? Seems so simple but I still can't figure it out for some reason...