Binance interview question

How would you implement state driven architectures in SwiftUI?