1
+ {
2
+ "abstract" : [
3
+ {
4
+ "text" : " A key that can be used to extend the environment with new properties." ,
5
+ "type" : " text"
6
+ }
7
+ ],
8
+ "hierarchy" : {
9
+ "paths" : [
10
+ [
11
+ " doc:\/\/ SwiftCrossUI\/ documentation\/ SwiftCrossUI"
12
+ ]
13
+ ]
14
+ },
15
+ "identifier" : {
16
+ "interfaceLanguage" : " swift" ,
17
+ "url" : " doc:\/\/ SwiftCrossUI\/ documentation\/ SwiftCrossUI\/ EnvironmentKey"
18
+ },
19
+ "kind" : " symbol" ,
20
+ "metadata" : {
21
+ "externalID" : " s:12SwiftCrossUI14EnvironmentKeyP" ,
22
+ "fragments" : [
23
+ {
24
+ "kind" : " keyword" ,
25
+ "text" : " protocol"
26
+ },
27
+ {
28
+ "kind" : " text" ,
29
+ "text" : " "
30
+ },
31
+ {
32
+ "kind" : " identifier" ,
33
+ "text" : " EnvironmentKey"
34
+ }
35
+ ],
36
+ "modules" : [
37
+ {
38
+ "name" : " SwiftCrossUI"
39
+ }
40
+ ],
41
+ "navigatorTitle" : [
42
+ {
43
+ "kind" : " identifier" ,
44
+ "text" : " EnvironmentKey"
45
+ }
46
+ ],
47
+ "remoteSource" : {
48
+ "fileName" : " EnvironmentValues.swift" ,
49
+ "url" : " https:\/\/ github.com\/ stackotter\/ swift-cross-ui\/ blob\/ main\/ Sources\/ SwiftCrossUI\/ Environment\/ EnvironmentValues.swift#L149"
50
+ },
51
+ "role" : " symbol" ,
52
+ "roleHeading" : " Protocol" ,
53
+ "symbolKind" : " protocol" ,
54
+ "title" : " EnvironmentKey"
55
+ },
56
+ "primaryContentSections" : [
57
+ {
58
+ "declarations" : [
59
+ {
60
+ "languages" : [
61
+ " swift"
62
+ ],
63
+ "platforms" : [
64
+ " macOS"
65
+ ],
66
+ "tokens" : [
67
+ {
68
+ "kind" : " keyword" ,
69
+ "text" : " protocol"
70
+ },
71
+ {
72
+ "kind" : " text" ,
73
+ "text" : " "
74
+ },
75
+ {
76
+ "kind" : " identifier" ,
77
+ "text" : " EnvironmentKey"
78
+ }
79
+ ]
80
+ }
81
+ ],
82
+ "kind" : " declarations"
83
+ }
84
+ ],
85
+ "schemaVersion" : {
86
+ "major" : 0 ,
87
+ "minor" : 3 ,
88
+ "patch" : 0
89
+ },
90
+ "sections" : [
91
+
92
+ ],
93
+ "topicSections" : [
94
+ {
95
+ "identifiers" : [
96
+ " doc:\/\/ SwiftCrossUI\/ documentation\/ SwiftCrossUI\/ EnvironmentKey\/ Value"
97
+ ],
98
+ "title" : " Associated Types"
99
+ },
100
+ {
101
+ "identifiers" : [
102
+ " doc:\/\/ SwiftCrossUI\/ documentation\/ SwiftCrossUI\/ EnvironmentKey\/ defaultValue"
103
+ ],
104
+ "title" : " Type Properties"
105
+ }
106
+ ],
107
+ "variants" : [
108
+ {
109
+ "paths" : [
110
+ " \/ documentation\/ swiftcrossui\/ environmentkey"
111
+ ],
112
+ "traits" : [
113
+ {
114
+ "interfaceLanguage" : " swift"
115
+ }
116
+ ]
117
+ }
118
+ ]
119
+ ,
120
+ "references" : {
121
+ "doc://SwiftCrossUI/documentation/SwiftCrossUI" : {
122
+ "abstract" : [
123
+ {
124
+ "text" : " Create cross-platform desktop apps for macOS, Linux, Windows, iOS and tvOS." ,
125
+ "type" : " text"
126
+ }
127
+ ],
128
+ "identifier" : " doc:\/\/ SwiftCrossUI\/ documentation\/ SwiftCrossUI" ,
129
+ "kind" : " symbol" ,
130
+ "role" : " collection" ,
131
+ "title" : " SwiftCrossUI" ,
132
+ "type" : " topic" ,
133
+ "url" : " \/ documentation\/ swiftcrossui"
134
+ },
135
+ "doc://SwiftCrossUI/documentation/SwiftCrossUI/EnvironmentKey" : {
136
+ "abstract" : [
137
+ {
138
+ "text" : " A key that can be used to extend the environment with new properties." ,
139
+ "type" : " text"
140
+ }
141
+ ],
142
+ "fragments" : [
143
+ {
144
+ "kind" : " keyword" ,
145
+ "text" : " protocol"
146
+ },
147
+ {
148
+ "kind" : " text" ,
149
+ "text" : " "
150
+ },
151
+ {
152
+ "kind" : " identifier" ,
153
+ "text" : " EnvironmentKey"
154
+ }
155
+ ],
156
+ "identifier" : " doc:\/\/ SwiftCrossUI\/ documentation\/ SwiftCrossUI\/ EnvironmentKey" ,
157
+ "kind" : " symbol" ,
158
+ "navigatorTitle" : [
159
+ {
160
+ "kind" : " identifier" ,
161
+ "text" : " EnvironmentKey"
162
+ }
163
+ ],
164
+ "role" : " symbol" ,
165
+ "title" : " EnvironmentKey" ,
166
+ "type" : " topic" ,
167
+ "url" : " \/ documentation\/ swiftcrossui\/ environmentkey"
168
+ },
169
+ "doc://SwiftCrossUI/documentation/SwiftCrossUI/EnvironmentKey/Value" : {
170
+ "abstract" : [
171
+ {
172
+ "text" : " The type of value the key can hold." ,
173
+ "type" : " text"
174
+ }
175
+ ],
176
+ "fragments" : [
177
+ {
178
+ "kind" : " keyword" ,
179
+ "text" : " associatedtype"
180
+ },
181
+ {
182
+ "kind" : " text" ,
183
+ "text" : " "
184
+ },
185
+ {
186
+ "kind" : " identifier" ,
187
+ "text" : " Value"
188
+ }
189
+ ],
190
+ "identifier" : " doc:\/\/ SwiftCrossUI\/ documentation\/ SwiftCrossUI\/ EnvironmentKey\/ Value" ,
191
+ "kind" : " symbol" ,
192
+ "required" : true ,
193
+ "role" : " symbol" ,
194
+ "title" : " Value" ,
195
+ "type" : " topic" ,
196
+ "url" : " \/ documentation\/ swiftcrossui\/ environmentkey\/ value"
197
+ },
198
+ "doc://SwiftCrossUI/documentation/SwiftCrossUI/EnvironmentKey/defaultValue" : {
199
+ "abstract" : [
200
+ {
201
+ "text" : " The default value for the key." ,
202
+ "type" : " text"
203
+ }
204
+ ],
205
+ "fragments" : [
206
+ {
207
+ "kind" : " keyword" ,
208
+ "text" : " static"
209
+ },
210
+ {
211
+ "kind" : " text" ,
212
+ "text" : " "
213
+ },
214
+ {
215
+ "kind" : " keyword" ,
216
+ "text" : " var"
217
+ },
218
+ {
219
+ "kind" : " text" ,
220
+ "text" : " "
221
+ },
222
+ {
223
+ "kind" : " identifier" ,
224
+ "text" : " defaultValue"
225
+ },
226
+ {
227
+ "kind" : " text" ,
228
+ "text" : " : "
229
+ },
230
+ {
231
+ "kind" : " typeIdentifier" ,
232
+ "text" : " Self"
233
+ },
234
+ {
235
+ "kind" : " text" ,
236
+ "text" : " ."
237
+ },
238
+ {
239
+ "kind" : " typeIdentifier" ,
240
+ "preciseIdentifier" : " s:12SwiftCrossUI14EnvironmentKeyP5ValueQa" ,
241
+ "text" : " Value"
242
+ }
243
+ ],
244
+ "identifier" : " doc:\/\/ SwiftCrossUI\/ documentation\/ SwiftCrossUI\/ EnvironmentKey\/ defaultValue" ,
245
+ "kind" : " symbol" ,
246
+ "required" : true ,
247
+ "role" : " symbol" ,
248
+ "title" : " defaultValue" ,
249
+ "type" : " topic" ,
250
+ "url" : " \/ documentation\/ swiftcrossui\/ environmentkey\/ defaultvalue"
251
+ }
252
+ }
253
+ }
0 commit comments