struct ChildView: View {
// var count = 0 // OK
private var count = 0 // 'ParentView' initializer is inaccessible due to 'private' protection level
var body: some View {
試してみる。
struct ChildView: View {
// public var count = 0 // OK
// internal var count = 0 // OK
// private var count = 0 // NG
// @State var count = 0 // OK
// @State public var count = 0 // OK
// @State internal var count = 0 // OK
// @State private var count = 0 // OK
var body: some View {