Avatar
indirect property は現状これが一番現実的だと思う struct Foo { private var _inner: Any? = nil var inner: Foo? { get { return _inner.map { $0 as! Foo } } set { _inner = newValue } } } (edited)