@MainActorstruct Setting { //type property static var mode: Int = 0 //type method static func setNextMode() { mode = (mode + 1) % 3; }}Setting.mode = 3Setting.setNextMode()//Setting.mode is 1print("mode is \(Setting.mode)")