@EnvironmentObject: 在SwiftUI中,因为所有子view会继承父view的environment,所以@EnvironmentObject所published的属性对当前view和所有子view共享。
確定! 回上一頁