You should use Combine for View-ViewModel binding in your iOS app

Photo by Federico Beccari on Unsplash
@Published var currentTemperature: Double = 16.2print($currentTemperature) // prints "Publisher(subject: Combine.PublishedSubject<Swift.Double>)"
with dropFirst() we will only receive updates for future value changes
Photo by Quino Al on Unsplash

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Eilon Krauthammer

Eilon Krauthammer

iOS Engineer. I love creating and learning.