-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathVariadicView_Children.swift
69 lines (54 loc) · 1.76 KB
/
VariadicView_Children.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
// VariadicView_Children.swift
// OpenSwiftUI
//
// Audited for iOS 15.5
// Status: TODO
// ID: 52A2FFECFBCF37BFFEED558E33EBD1E3
import OpenGraphShims
/// An ad hoc collection of the children of a variadic view.
public struct _VariadicView_Children {
var list: ViewList
var contentSubgraph: OGSubgraph
}
extension _VariadicView_Children: RandomAccessCollection {
public struct Element: PrimitiveView, UnaryView, Identifiable {
// var view: _ViewList_View
var traits: ViewTraitCollection
public var id: AnyHashable {
// view.viewID
preconditionFailure("TODO")
}
public func id<ID>(as _: ID.Type = ID.self) -> ID? where ID : Hashable {
preconditionFailure("TODO")
}
public subscript<Trait: _ViewTraitKey>(key: Trait.Type) -> Trait.Value {
get { traits[key] }
set { traits[key] = newValue }
}
public static func _makeView(view: _GraphValue<_VariadicView_Children.Element>, inputs: _ViewInputs) -> _ViewOutputs {
preconditionFailure("TODO")
}
}
public var startIndex: Int {
preconditionFailure("TODO")
// get
}
public var endIndex: Int {
preconditionFailure("TODO")
// get
}
public subscript(index: Int) -> _VariadicView_Children.Element {
preconditionFailure("TODO")
// get
}
}
extension _VariadicView_Children {
private struct Child: Rule, AsyncAttribute {
typealias Value = ForEach<_VariadicView_Children, AnyHashable, _VariadicView_Children.Element>
@Attribute var children: _VariadicView_Children
var value: Value {
preconditionFailure("TODO")
}
}
}