swift
@View struct LoveCounter { @State var figure = 1 var body: some View { p { String(repeating: "❤️", count: count) } if figure < 10 { button { "More Love" } .onClick { figure += 1 } } else { p { "Enough affection for you!" } button { "Less Love" } .onClick { figure = 1 } } } }