Junior — Senior
Displaying the current number in a SwiftUI view
livecode
Task condition
Implement a SwiftUI component that accepts a success state and displays the received integer. When this number changes, the view should automatically update.
struct SuccessView: View {
var value: Int
var body: some View {
Text("Number is: \(value)")
}
}