Building Multiplatform Weather App using KMM : Part 4 — Updating Data on iOS UI

Andrea
1 min readDec 14, 2023

Similar with part 3, we will also updating our data on iOS platform.

First step I will change all data into some variable inside our content view.

struct ContentView: View {
@State private var place = ""
@State private var temp = ""
@State private var description = ""

var api = WeatherAPI();
...

For convenient, I will create function which will called API Function and updating the variable when the function is called…

--

--