-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathR.generated.swift
341 lines (270 loc) · 14 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
//
// 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 2 files.
struct file {
/// Resource file `drop_loading.json`.
static let drop_loadingJson = Rswift.FileResource(bundle: R.hostingBundle, name: "drop_loading", pathExtension: "json")
/// Resource file `syncing.json`.
static let syncingJson = Rswift.FileResource(bundle: R.hostingBundle, name: "syncing", pathExtension: "json")
/// `bundle.url(forResource: "drop_loading", withExtension: "json")`
static func drop_loadingJson(_: Void = ()) -> Foundation.URL? {
let fileResource = R.file.drop_loadingJson
return fileResource.bundle.url(forResource: fileResource)
}
/// `bundle.url(forResource: "syncing", withExtension: "json")`
static func syncingJson(_: Void = ()) -> Foundation.URL? {
let fileResource = R.file.syncingJson
return fileResource.bundle.url(forResource: fileResource)
}
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 2 images.
struct image {
/// Image `round-swap-horizontal-circle`.
static let roundSwapHorizontalCircle = Rswift.ImageResource(bundle: R.hostingBundle, name: "round-swap-horizontal-circle")
/// Image `round-swap-vertical-circle`.
static let roundSwapVerticalCircle = Rswift.ImageResource(bundle: R.hostingBundle, name: "round-swap-vertical-circle")
/// `UIImage(named: "round-swap-horizontal-circle", bundle: ..., traitCollection: ...)`
static func roundSwapHorizontalCircle(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.roundSwapHorizontalCircle, compatibleWith: traitCollection)
}
/// `UIImage(named: "round-swap-vertical-circle", bundle: ..., traitCollection: ...)`
static func roundSwapVerticalCircle(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.roundSwapVerticalCircle, compatibleWith: traitCollection)
}
fileprivate init() {}
}
/// This `R.nib` struct is generated, and contains static references to 5 nibs.
struct nib {
/// Nib `CurrencyExchangeView`.
static let currencyExchangeView = _R.nib._CurrencyExchangeView()
/// Nib `CurrencyTableViewCell`.
static let currencyTableViewCell = _R.nib._CurrencyTableViewCell()
/// Nib `CurrencyView`.
static let currencyView = _R.nib._CurrencyView()
/// Nib `LoaderView`.
static let loaderView = _R.nib._LoaderView()
/// Nib `SwapView`.
static let swapView = _R.nib._SwapView()
/// `UINib(name: "CurrencyExchangeView", in: bundle)`
static func currencyExchangeView(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.currencyExchangeView)
}
/// `UINib(name: "CurrencyTableViewCell", in: bundle)`
static func currencyTableViewCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.currencyTableViewCell)
}
/// `UINib(name: "CurrencyView", in: bundle)`
static func currencyView(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.currencyView)
}
/// `UINib(name: "LoaderView", in: bundle)`
static func loaderView(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.loaderView)
}
/// `UINib(name: "SwapView", in: bundle)`
static func swapView(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.swapView)
}
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 `CurrencyExchange`.
static let currencyExchange = _R.storyboard.currencyExchange()
/// Storyboard `CurrencyList`.
static let currencyList = _R.storyboard.currencyList()
/// `UIStoryboard(name: "CurrencyExchange", bundle: ...)`
static func currencyExchange(_: Void = ()) -> UIKit.UIStoryboard {
return UIKit.UIStoryboard(resource: R.storyboard.currencyExchange)
}
/// `UIStoryboard(name: "CurrencyList", bundle: ...)`
static func currencyList(_: Void = ()) -> UIKit.UIStoryboard {
return UIKit.UIStoryboard(resource: R.storyboard.currencyList)
}
fileprivate init() {}
}
/// This `R.string` struct is generated, and contains static references to 1 localization tables.
struct string {
/// This `R.string.localizable` struct is generated, and contains static references to 4 localization keys.
struct localizable {
/// en translation: Exchange
///
/// Locales: en
static let currency_exchange_title = Rswift.StringResource(key: "currency_exchange_title", tableName: "Localizable", bundle: R.hostingBundle, locales: ["en"], comment: nil)
/// en translation: Select new currency
///
/// Locales: en
static let select_new_currency = Rswift.StringResource(key: "select_new_currency", tableName: "Localizable", bundle: R.hostingBundle, locales: ["en"], comment: nil)
/// en translation: `%@` not match to pattern: `%@`
///
/// Locales: en
static let not_matching_pattern = Rswift.StringResource(key: "not_matching_pattern", tableName: "Localizable", bundle: R.hostingBundle, locales: ["en"], comment: nil)
/// en translation: en
///
/// Locales: en
static let loc_lang = Rswift.StringResource(key: "loc_lang", tableName: "Localizable", bundle: R.hostingBundle, locales: ["en"], comment: nil)
/// en translation: Exchange
///
/// Locales: en
static func currency_exchange_title(_: Void = ()) -> String {
return NSLocalizedString("currency_exchange_title", bundle: R.hostingBundle, comment: "")
}
/// en translation: Select new currency
///
/// Locales: en
static func select_new_currency(_: Void = ()) -> String {
return NSLocalizedString("select_new_currency", bundle: R.hostingBundle, comment: "")
}
/// en translation: `%@` not match to pattern: `%@`
///
/// Locales: en
static func not_matching_pattern(_ value1: String, _ value2: String) -> String {
return String(format: NSLocalizedString("not_matching_pattern", bundle: R.hostingBundle, comment: ""), locale: R.applicationLocale, value1, value2)
}
/// en translation: en
///
/// Locales: en
static func loc_lang(_: Void = ()) -> String {
return NSLocalizedString("loc_lang", bundle: R.hostingBundle, comment: "")
}
fileprivate init() {}
}
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 _SwapView.validate()
}
struct _CurrencyExchangeView: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "CurrencyExchangeView"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> UIKit.UIView? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? UIKit.UIView
}
fileprivate init() {}
}
struct _CurrencyTableViewCell: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "CurrencyTableViewCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> CurrencyTableViewCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? CurrencyTableViewCell
}
fileprivate init() {}
}
struct _CurrencyView: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "CurrencyView"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> UIKit.UIView? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? UIKit.UIView
}
fileprivate init() {}
}
struct _LoaderView: Rswift.NibResourceType {
let bundle = R.hostingBundle
let name = "LoaderView"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> LoaderView? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? LoaderView
}
fileprivate init() {}
}
struct _SwapView: Rswift.NibResourceType, Rswift.Validatable {
let bundle = R.hostingBundle
let name = "SwapView"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [NSObject : AnyObject]? = nil) -> UIKit.UIView? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? UIKit.UIView
}
static func validate() throws {
if UIKit.UIImage(named: "round-swap-horizontal-circle", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'round-swap-horizontal-circle' is used in nib 'SwapView', but couldn't be loaded.") }
}
fileprivate init() {}
}
fileprivate init() {}
}
struct storyboard: Rswift.Validatable {
static func validate() throws {
try currencyExchange.validate()
try currencyList.validate()
}
struct currencyExchange: Rswift.StoryboardResourceWithInitialControllerType, Rswift.Validatable {
typealias InitialController = CurrencyExchangeNavigationController
let bundle = R.hostingBundle
let currencyExchangeNavigationController = StoryboardViewControllerResource<CurrencyExchangeNavigationController>(identifier: "CurrencyExchangeNavigationController")
let currencyExchangeViewController = StoryboardViewControllerResource<CurrencyExchangeViewController>(identifier: "CurrencyExchangeViewController")
let name = "CurrencyExchange"
func currencyExchangeNavigationController(_: Void = ()) -> CurrencyExchangeNavigationController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: currencyExchangeNavigationController)
}
func currencyExchangeViewController(_: Void = ()) -> CurrencyExchangeViewController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: currencyExchangeViewController)
}
static func validate() throws {
if _R.storyboard.currencyExchange().currencyExchangeViewController() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'currencyExchangeViewController' could not be loaded from storyboard 'CurrencyExchange' as 'CurrencyExchangeViewController'.") }
if _R.storyboard.currencyExchange().currencyExchangeNavigationController() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'currencyExchangeNavigationController' could not be loaded from storyboard 'CurrencyExchange' as 'CurrencyExchangeNavigationController'.") }
}
fileprivate init() {}
}
struct currencyList: Rswift.StoryboardResourceWithInitialControllerType, Rswift.Validatable {
typealias InitialController = CurrencyListNavigationController
let bundle = R.hostingBundle
let currencyListNavigationController = StoryboardViewControllerResource<CurrencyListNavigationController>(identifier: "CurrencyListNavigationController")
let currencyListViewController = StoryboardViewControllerResource<CurrencyListViewController>(identifier: "CurrencyListViewController")
let name = "CurrencyList"
func currencyListNavigationController(_: Void = ()) -> CurrencyListNavigationController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: currencyListNavigationController)
}
func currencyListViewController(_: Void = ()) -> CurrencyListViewController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: currencyListViewController)
}
static func validate() throws {
if _R.storyboard.currencyList().currencyListNavigationController() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'currencyListNavigationController' could not be loaded from storyboard 'CurrencyList' as 'CurrencyListNavigationController'.") }
if _R.storyboard.currencyList().currencyListViewController() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'currencyListViewController' could not be loaded from storyboard 'CurrencyList' as 'CurrencyListViewController'.") }
}
fileprivate init() {}
}
fileprivate init() {}
}
fileprivate init() {}
}