Creates a decision tree starting with the specified initial attribute to test.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
The first attribute to test (or question to answer) when evaluating the tree.
A new decision tree.
The decision tree returned by this initializer is incomplete. To build a manually defined tree, use the
root property to access the node corresponding to the initial attribute, and use
GKDecision methods on that object to create branches leading to child nodes that represent additional attributes to test or final actions.