-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathR.generated.swift
More file actions
394 lines (311 loc) · 17.4 KB
/
R.generated.swift
File metadata and controls
394 lines (311 loc) · 17.4 KB
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
388
389
390
391
392
393
394
//
// 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 1 colors.
struct color {
/// Color `BluePrimary`.
static let bluePrimary = Rswift.ColorResource(bundle: R.hostingBundle, name: "BluePrimary")
/// `UIColor(named: "BluePrimary", bundle: ..., traitCollection: ...)`
@available(tvOS 11.0, *)
@available(iOS 11.0, *)
static func bluePrimary(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIColor? {
return UIKit.UIColor(resource: R.color.bluePrimary, compatibleWith: traitCollection)
}
fileprivate init() {}
}
/// This `R.image` struct is generated, and contains static references to 9 images.
struct image {
/// Image `ic_back_arrow`.
static let ic_back_arrow = Rswift.ImageResource(bundle: R.hostingBundle, name: "ic_back_arrow")
/// Image `ic_hamburger_white`.
static let ic_hamburger_white = Rswift.ImageResource(bundle: R.hostingBundle, name: "ic_hamburger_white")
/// Image `ic_more_share`.
static let ic_more_share = Rswift.ImageResource(bundle: R.hostingBundle, name: "ic_more_share")
/// Image `ic_user_placeholder`.
static let ic_user_placeholder = Rswift.ImageResource(bundle: R.hostingBundle, name: "ic_user_placeholder")
/// Image `img_covid1`.
static let img_covid1 = Rswift.ImageResource(bundle: R.hostingBundle, name: "img_covid1")
/// Image `img_covid2`.
static let img_covid2 = Rswift.ImageResource(bundle: R.hostingBundle, name: "img_covid2")
/// Image `img_covid3`.
static let img_covid3 = Rswift.ImageResource(bundle: R.hostingBundle, name: "img_covid3")
/// Image `img_covid4`.
static let img_covid4 = Rswift.ImageResource(bundle: R.hostingBundle, name: "img_covid4")
/// Image `img_covid5`.
static let img_covid5 = Rswift.ImageResource(bundle: R.hostingBundle, name: "img_covid5")
/// `UIImage(named: "ic_back_arrow", bundle: ..., traitCollection: ...)`
static func ic_back_arrow(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.ic_back_arrow, compatibleWith: traitCollection)
}
/// `UIImage(named: "ic_hamburger_white", bundle: ..., traitCollection: ...)`
static func ic_hamburger_white(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.ic_hamburger_white, compatibleWith: traitCollection)
}
/// `UIImage(named: "ic_more_share", bundle: ..., traitCollection: ...)`
static func ic_more_share(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.ic_more_share, compatibleWith: traitCollection)
}
/// `UIImage(named: "ic_user_placeholder", bundle: ..., traitCollection: ...)`
static func ic_user_placeholder(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.ic_user_placeholder, compatibleWith: traitCollection)
}
/// `UIImage(named: "img_covid1", bundle: ..., traitCollection: ...)`
static func img_covid1(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.img_covid1, compatibleWith: traitCollection)
}
/// `UIImage(named: "img_covid2", bundle: ..., traitCollection: ...)`
static func img_covid2(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.img_covid2, compatibleWith: traitCollection)
}
/// `UIImage(named: "img_covid3", bundle: ..., traitCollection: ...)`
static func img_covid3(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.img_covid3, compatibleWith: traitCollection)
}
/// `UIImage(named: "img_covid4", bundle: ..., traitCollection: ...)`
static func img_covid4(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.img_covid4, compatibleWith: traitCollection)
}
/// `UIImage(named: "img_covid5", bundle: ..., traitCollection: ...)`
static func img_covid5(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.img_covid5, compatibleWith: traitCollection)
}
fileprivate init() {}
}
/// This `R.nib` struct is generated, and contains static references to 9 nibs.
struct nib {
/// Nib `HomeNewsCell`.
static let homeNewsCell = _R.nib._HomeNewsCell()
/// Nib `HomeNewsItemCell`.
static let homeNewsItemCell = _R.nib._HomeNewsItemCell()
/// Nib `HomePreventCovidCell`.
static let homePreventCovidCell = _R.nib._HomePreventCovidCell()
/// Nib `HomePreventCovidItemCell`.
static let homePreventCovidItemCell = _R.nib._HomePreventCovidItemCell()
/// Nib `HomeRequirementItemCell`.
static let homeRequirementItemCell = _R.nib._HomeRequirementItemCell()
/// Nib `HomeRequirementsCell`.
static let homeRequirementsCell = _R.nib._HomeRequirementsCell()
/// Nib `HomeViewController`.
static let homeViewController = _R.nib._HomeViewController()
/// Nib `NewsDetailHeaderCell`.
static let newsDetailHeaderCell = _R.nib._NewsDetailHeaderCell()
/// Nib `NewsFooterView`.
static let newsFooterView = _R.nib._NewsFooterView()
/// `UINib(name: "HomeNewsCell", in: bundle)`
@available(*, deprecated, message: "Use UINib(resource: R.nib.homeNewsCell) instead")
static func homeNewsCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.homeNewsCell)
}
/// `UINib(name: "HomeNewsItemCell", in: bundle)`
@available(*, deprecated, message: "Use UINib(resource: R.nib.homeNewsItemCell) instead")
static func homeNewsItemCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.homeNewsItemCell)
}
/// `UINib(name: "HomePreventCovidCell", in: bundle)`
@available(*, deprecated, message: "Use UINib(resource: R.nib.homePreventCovidCell) instead")
static func homePreventCovidCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.homePreventCovidCell)
}
/// `UINib(name: "HomePreventCovidItemCell", in: bundle)`
@available(*, deprecated, message: "Use UINib(resource: R.nib.homePreventCovidItemCell) instead")
static func homePreventCovidItemCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.homePreventCovidItemCell)
}
/// `UINib(name: "HomeRequirementItemCell", in: bundle)`
@available(*, deprecated, message: "Use UINib(resource: R.nib.homeRequirementItemCell) instead")
static func homeRequirementItemCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.homeRequirementItemCell)
}
/// `UINib(name: "HomeRequirementsCell", in: bundle)`
@available(*, deprecated, message: "Use UINib(resource: R.nib.homeRequirementsCell) instead")
static func homeRequirementsCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.homeRequirementsCell)
}
/// `UINib(name: "HomeViewController", in: bundle)`
@available(*, deprecated, message: "Use UINib(resource: R.nib.homeViewController) instead")
static func homeViewController(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.homeViewController)
}
/// `UINib(name: "NewsDetailHeaderCell", in: bundle)`
@available(*, deprecated, message: "Use UINib(resource: R.nib.newsDetailHeaderCell) instead")
static func newsDetailHeaderCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.newsDetailHeaderCell)
}
/// `UINib(name: "NewsFooterView", in: bundle)`
@available(*, deprecated, message: "Use UINib(resource: R.nib.newsFooterView) instead")
static func newsFooterView(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.newsFooterView)
}
static func homeNewsCell(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> HomeNewsCell? {
return R.nib.homeNewsCell.instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HomeNewsCell
}
static func homeNewsItemCell(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> HomeNewsItemCell? {
return R.nib.homeNewsItemCell.instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HomeNewsItemCell
}
static func homePreventCovidCell(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> HomePreventCovidCell? {
return R.nib.homePreventCovidCell.instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HomePreventCovidCell
}
static func homePreventCovidItemCell(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> HomePreventCovidItemCell? {
return R.nib.homePreventCovidItemCell.instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HomePreventCovidItemCell
}
static func homeRequirementItemCell(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> HomeRequirementItemCell? {
return R.nib.homeRequirementItemCell.instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HomeRequirementItemCell
}
static func homeRequirementsCell(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> HomeRequirementsCell? {
return R.nib.homeRequirementsCell.instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HomeRequirementsCell
}
static func homeViewController(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> UIKit.UIView? {
return R.nib.homeViewController.instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? UIKit.UIView
}
static func newsDetailHeaderCell(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> NewsDetailHeaderCell? {
return R.nib.newsDetailHeaderCell.instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? NewsDetailHeaderCell
}
static func newsFooterView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> NewsFooterView? {
return R.nib.newsFooterView.instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? NewsFooterView
}
fileprivate init() {}
}
/// This `R.storyboard` struct is generated, and contains static references to 1 storyboards.
struct storyboard {
/// Storyboard `LaunchScreen`.
static let launchScreen = _R.storyboard.launchScreen()
/// `UIStoryboard(name: "LaunchScreen", bundle: ...)`
static func launchScreen(_: Void = ()) -> UIKit.UIStoryboard {
return UIKit.UIStoryboard(resource: R.storyboard.launchScreen)
}
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 _HomeNewsItemCell.validate()
try _NewsFooterView.validate()
}
struct _HomeNewsCell: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "HomeNewsCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> HomeNewsCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HomeNewsCell
}
fileprivate init() {}
}
struct _HomeNewsItemCell: Rswift.NibResourceType, Rswift.Validatable {
let bundle = R.hostingBundle
let name = "HomeNewsItemCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> HomeNewsItemCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HomeNewsItemCell
}
static func validate() throws {
if UIKit.UIImage(named: "img_covid1", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'img_covid1' is used in nib 'HomeNewsItemCell', but couldn't be loaded.") }
if #available(iOS 11.0, *) {
}
}
fileprivate init() {}
}
struct _HomePreventCovidCell: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "HomePreventCovidCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> HomePreventCovidCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HomePreventCovidCell
}
fileprivate init() {}
}
struct _HomePreventCovidItemCell: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "HomePreventCovidItemCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> HomePreventCovidItemCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HomePreventCovidItemCell
}
fileprivate init() {}
}
struct _HomeRequirementItemCell: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "HomeRequirementItemCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> HomeRequirementItemCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HomeRequirementItemCell
}
fileprivate init() {}
}
struct _HomeRequirementsCell: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "HomeRequirementsCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> HomeRequirementsCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? HomeRequirementsCell
}
fileprivate init() {}
}
struct _HomeViewController: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "HomeViewController"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> UIKit.UIView? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? UIKit.UIView
}
fileprivate init() {}
}
struct _NewsDetailHeaderCell: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "NewsDetailHeaderCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> NewsDetailHeaderCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? NewsDetailHeaderCell
}
fileprivate init() {}
}
struct _NewsFooterView: Rswift.NibResourceType, Rswift.Validatable {
let bundle = R.hostingBundle
let name = "NewsFooterView"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> NewsFooterView? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? NewsFooterView
}
static func validate() throws {
if UIKit.UIImage(named: "bookmark.fill", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'bookmark.fill' is used in nib 'NewsFooterView', but couldn't be loaded.") }
if UIKit.UIImage(named: "heart.fill", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'heart.fill' is used in nib 'NewsFooterView', but couldn't be loaded.") }
if UIKit.UIImage(named: "square.and.pencil", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'square.and.pencil' is used in nib 'NewsFooterView', but couldn't be loaded.") }
if #available(iOS 11.0, *) {
}
}
fileprivate init() {}
}
fileprivate init() {}
}
struct storyboard: Rswift.Validatable {
static func validate() throws {
try launchScreen.validate()
}
struct launchScreen: Rswift.StoryboardResourceWithInitialControllerType, Rswift.Validatable {
typealias InitialController = UIKit.UIViewController
let bundle = R.hostingBundle
let name = "LaunchScreen"
static func validate() throws {
if #available(iOS 11.0, *) {
}
}
fileprivate init() {}
}
fileprivate init() {}
}
fileprivate init() {}
}