-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathR.generated.swift
387 lines (303 loc) · 15 KB
/
R.generated.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
//
// This is a generated file, do not edit!
// Generated by R.swift, see https://github.com/mac-cain13/R.swift
//
import Foundation
import Rswift
import UIKit
/// This `R` struct is generated and contains references to static resources.
struct R: Rswift.Validatable {
fileprivate static let applicationLocale = hostingBundle.preferredLocalizations.first.flatMap(Locale.init) ?? Locale.current
fileprivate static let hostingBundle = Bundle(for: R.Class.self)
static func validate() throws {
try intern.validate()
}
/// This `R.color` struct is generated, and contains static references to 0 colors.
struct color {
fileprivate init() {}
}
/// This `R.file` struct is generated, and contains static references to 0 files.
struct file {
fileprivate init() {}
}
/// This `R.font` struct is generated, and contains static references to 0 fonts.
struct font {
fileprivate init() {}
}
/// This `R.image` struct is generated, and contains static references to 7 images.
struct image {
/// Image `005-sunny`.
static let sunny = Rswift.ImageResource(bundle: R.hostingBundle, name: "005-sunny")
/// Image `006-sun`.
static let sun = Rswift.ImageResource(bundle: R.hostingBundle, name: "006-sun")
/// Image `007-clouds`.
static let clouds = Rswift.ImageResource(bundle: R.hostingBundle, name: "007-clouds")
/// Image `car_placeholder`.
static let car_placeholder = Rswift.ImageResource(bundle: R.hostingBundle, name: "car_placeholder")
/// Image `plus`.
static let plus = Rswift.ImageResource(bundle: R.hostingBundle, name: "plus")
/// Image `test_car`.
static let test_car = Rswift.ImageResource(bundle: R.hostingBundle, name: "test_car")
/// Image `weather_back`.
static let weather_back = Rswift.ImageResource(bundle: R.hostingBundle, name: "weather_back")
/// `UIImage(named: "005-sunny", bundle: ..., traitCollection: ...)`
static func sunny(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.sunny, compatibleWith: traitCollection)
}
/// `UIImage(named: "006-sun", bundle: ..., traitCollection: ...)`
static func sun(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.sun, compatibleWith: traitCollection)
}
/// `UIImage(named: "007-clouds", bundle: ..., traitCollection: ...)`
static func clouds(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.clouds, compatibleWith: traitCollection)
}
/// `UIImage(named: "car_placeholder", bundle: ..., traitCollection: ...)`
static func car_placeholder(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.car_placeholder, compatibleWith: traitCollection)
}
/// `UIImage(named: "plus", bundle: ..., traitCollection: ...)`
static func plus(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.plus, compatibleWith: traitCollection)
}
/// `UIImage(named: "test_car", bundle: ..., traitCollection: ...)`
static func test_car(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.test_car, compatibleWith: traitCollection)
}
/// `UIImage(named: "weather_back", bundle: ..., traitCollection: ...)`
static func weather_back(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.weather_back, compatibleWith: traitCollection)
}
fileprivate init() {}
}
/// This `R.nib` struct is generated, and contains static references to 9 nibs.
struct nib {
/// Nib `AddNewCarCell`.
static let addNewCarCell = _R.nib._AddNewCarCell()
/// Nib `AlreadyAddedCell`.
static let alreadyAddedCell = _R.nib._AlreadyAddedCell()
/// Nib `CarCell`.
static let carCell = _R.nib._CarCell()
/// Nib `CoupleCell`.
static let coupleCell = _R.nib._CoupleCell()
/// Nib `HorizontalCell`.
static let horizontalCell = _R.nib._HorizontalCell()
/// Nib `PhotoCollectionView`.
static let photoCollectionView = _R.nib._PhotoCollectionView()
/// Nib `SlideView`.
static let slideView = _R.nib._SlideView()
/// Nib `VerticalCell`.
static let verticalCell = _R.nib._VerticalCell()
/// Nib `WeatherView`.
static let weatherView = _R.nib._WeatherView()
/// `UINib(name: "AddNewCarCell", in: bundle)`
static func addNewCarCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.addNewCarCell)
}
/// `UINib(name: "AlreadyAddedCell", in: bundle)`
static func alreadyAddedCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.alreadyAddedCell)
}
/// `UINib(name: "CarCell", in: bundle)`
static func carCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.carCell)
}
/// `UINib(name: "CoupleCell", in: bundle)`
static func coupleCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.coupleCell)
}
/// `UINib(name: "HorizontalCell", in: bundle)`
static func horizontalCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.horizontalCell)
}
/// `UINib(name: "PhotoCollectionView", in: bundle)`
static func photoCollectionView(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.photoCollectionView)
}
/// `UINib(name: "SlideView", in: bundle)`
static func slideView(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.slideView)
}
/// `UINib(name: "VerticalCell", in: bundle)`
static func verticalCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.verticalCell)
}
/// `UINib(name: "WeatherView", in: bundle)`
static func weatherView(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.weatherView)
}
fileprivate init() {}
}
/// This `R.reuseIdentifier` struct is generated, and contains static references to 0 reuse identifiers.
struct reuseIdentifier {
fileprivate init() {}
}
/// This `R.segue` struct is generated, and contains static references to 0 view controllers.
struct segue {
fileprivate init() {}
}
/// This `R.storyboard` struct is generated, and contains static references to 2 storyboards.
struct storyboard {
/// Storyboard `LaunchScreen`.
static let launchScreen = _R.storyboard.launchScreen()
/// Storyboard `Main`.
static let main = _R.storyboard.main()
/// `UIStoryboard(name: "LaunchScreen", bundle: ...)`
static func launchScreen(_: Void = ()) -> UIKit.UIStoryboard {
return UIKit.UIStoryboard(resource: R.storyboard.launchScreen)
}
/// `UIStoryboard(name: "Main", bundle: ...)`
static func main(_: Void = ()) -> UIKit.UIStoryboard {
return UIKit.UIStoryboard(resource: R.storyboard.main)
}
fileprivate init() {}
}
/// This `R.string` struct is generated, and contains static references to 0 localization tables.
struct string {
fileprivate init() {}
}
fileprivate struct intern: Rswift.Validatable {
fileprivate static func validate() throws {
try _R.validate()
}
fileprivate init() {}
}
fileprivate class Class {}
fileprivate init() {}
}
struct _R: Rswift.Validatable {
static func validate() throws {
try storyboard.validate()
try nib.validate()
}
struct nib: Rswift.Validatable {
static func validate() throws {
try _AlreadyAddedCell.validate()
try _WeatherView.validate()
try _CarCell.validate()
try _AddNewCarCell.validate()
}
struct _AddNewCarCell: Rswift.NibResourceType, Rswift.Validatable {
let bundle = R.hostingBundle
let name = "AddNewCarCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> AddNewCarCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? AddNewCarCell
}
static func validate() throws {
if UIKit.UIImage(named: "plus", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'plus' is used in nib 'AddNewCarCell', but couldn't be loaded.") }
}
fileprivate init() {}
}
struct _AlreadyAddedCell: Rswift.NibResourceType, Rswift.Validatable {
let bundle = R.hostingBundle
let name = "AlreadyAddedCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> AlreadyAddedCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? AlreadyAddedCell
}
static func validate() throws {
if UIKit.UIImage(named: "car_placeholder", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'car_placeholder' is used in nib 'AlreadyAddedCell', but couldn't be loaded.") }
}
fileprivate init() {}
}
struct _CarCell: Rswift.NibResourceType, Rswift.Validatable {
let bundle = R.hostingBundle
let name = "CarCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> CarCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? CarCell
}
static func validate() throws {
if UIKit.UIImage(named: "car_placeholder", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'car_placeholder' is used in nib 'CarCell', but couldn't be loaded.") }
}
fileprivate init() {}
}
struct _CoupleCell: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "CoupleCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> CoupleCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? CoupleCell
}
fileprivate init() {}
}
struct _HorizontalCell: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "HorizontalCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> HorizontalCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HorizontalCell
}
fileprivate init() {}
}
struct _PhotoCollectionView: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "PhotoCollectionView"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> PhotoCollectionView? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? PhotoCollectionView
}
fileprivate init() {}
}
struct _SlideView: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "SlideView"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> SlideView? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? SlideView
}
fileprivate init() {}
}
struct _VerticalCell: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "VerticalCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> VerticalCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? VerticalCell
}
fileprivate init() {}
}
struct _WeatherView: Rswift.NibResourceType, Rswift.Validatable {
let bundle = R.hostingBundle
let name = "WeatherView"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> WeatherView? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? WeatherView
}
static func validate() throws {
if UIKit.UIImage(named: "005-sunny", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named '005-sunny' is used in nib 'WeatherView', but couldn't be loaded.") }
if UIKit.UIImage(named: "weather_back", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'weather_back' is used in nib 'WeatherView', but couldn't be loaded.") }
}
fileprivate init() {}
}
fileprivate init() {}
}
struct storyboard: Rswift.Validatable {
static func validate() throws {
try main.validate()
}
struct launchScreen: Rswift.StoryboardResourceWithInitialControllerType {
typealias InitialController = UIKit.UIViewController
let bundle = R.hostingBundle
let name = "LaunchScreen"
fileprivate init() {}
}
struct main: Rswift.StoryboardResourceWithInitialControllerType, Rswift.Validatable {
typealias InitialController = CarListVC
let addNewCarScreenVC = StoryboardViewControllerResource<AddNewCarScreenVC>(identifier: "AddNewCarScreenVC")
let bundle = R.hostingBundle
let carInfoVC = StoryboardViewControllerResource<CarInfoVC>(identifier: "CarInfoVC")
let carListVC = StoryboardViewControllerResource<CarListVC>(identifier: "CarListVC")
let name = "Main"
func addNewCarScreenVC(_: Void = ()) -> AddNewCarScreenVC? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: addNewCarScreenVC)
}
func carInfoVC(_: Void = ()) -> CarInfoVC? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: carInfoVC)
}
func carListVC(_: Void = ()) -> CarListVC? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: carListVC)
}
static func validate() throws {
if _R.storyboard.main().carListVC() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'carListVC' could not be loaded from storyboard 'Main' as 'CarListVC'.") }
if _R.storyboard.main().addNewCarScreenVC() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'addNewCarScreenVC' could not be loaded from storyboard 'Main' as 'AddNewCarScreenVC'.") }
if _R.storyboard.main().carInfoVC() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'carInfoVC' could not be loaded from storyboard 'Main' as 'CarInfoVC'.") }
}
fileprivate init() {}
}
fileprivate init() {}
}
fileprivate init() {}
}