We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b9e7a1 commit 498e9cdCopy full SHA for 498e9cd
Examples/Sources/SplitExample/SplitApp.swift
@@ -6,15 +6,19 @@ import SwiftCrossUI
6
import SwiftBundlerRuntime
7
#endif
8
9
-enum SubjectArea: String, CaseIterable {
+enum SubjectArea: String, CaseIterable, Identifiable {
10
+ var id: Self { self }
11
+
12
case science = "Science"
13
case humanities = "Humanities"
14
}
15
-enum Subject: Hashable {
16
+enum Subject: Hashable, Identifiable {
17
case science(ScienceSubject)
18
case humanities(HumanitiesSubject)
19
20
21
22
var rawValue: String {
23
switch self {
24
case .science(let scienceSubject):
0 commit comments