-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy pathR.generated.swift
309 lines (251 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
//
// 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 color palettes.
struct color {
fileprivate init() {}
}
/// This `R.file` struct is generated, and contains static references to 3 files.
struct file {
/// Resource file `art.scnassets`.
static let artScnassets = Rswift.FileResource(bundle: R.hostingBundle, name: "art", pathExtension: "scnassets")
/// Resource file `wx.jpg`.
static let wxJpg = Rswift.FileResource(bundle: R.hostingBundle, name: "wx", pathExtension: "jpg")
/// Resource file `zfb.jpg`.
static let zfbJpg = Rswift.FileResource(bundle: R.hostingBundle, name: "zfb", pathExtension: "jpg")
/// `bundle.url(forResource: "art", withExtension: "scnassets")`
static func artScnassets(_: Void = ()) -> Foundation.URL? {
let fileResource = R.file.artScnassets
return fileResource.bundle.url(forResource: fileResource)
}
/// `bundle.url(forResource: "wx", withExtension: "jpg")`
static func wxJpg(_: Void = ()) -> Foundation.URL? {
let fileResource = R.file.wxJpg
return fileResource.bundle.url(forResource: fileResource)
}
/// `bundle.url(forResource: "zfb", withExtension: "jpg")`
static func zfbJpg(_: Void = ()) -> Foundation.URL? {
let fileResource = R.file.zfbJpg
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 11 images.
struct image {
/// Image `Slice`.
static let slice = Rswift.ImageResource(bundle: R.hostingBundle, name: "Slice")
/// Image `add`.
static let add = Rswift.ImageResource(bundle: R.hostingBundle, name: "add")
/// Image `help`.
static let help = Rswift.ImageResource(bundle: R.hostingBundle, name: "help")
/// Image `logo`.
static let logo = Rswift.ImageResource(bundle: R.hostingBundle, name: "logo")
/// Image `restart`.
static let restart = Rswift.ImageResource(bundle: R.hostingBundle, name: "restart")
/// Image `set`.
static let set = Rswift.ImageResource(bundle: R.hostingBundle, name: "set")
/// Image `setting`.
static let setting = Rswift.ImageResource(bundle: R.hostingBundle, name: "setting")
/// Image `settings`.
static let settings = Rswift.ImageResource(bundle: R.hostingBundle, name: "settings")
/// Image `trash`.
static let trash = Rswift.ImageResource(bundle: R.hostingBundle, name: "trash")
/// Image `wx.jpg`.
static let wxJpg = Rswift.ImageResource(bundle: R.hostingBundle, name: "wx.jpg")
/// Image `zfb.jpg`.
static let zfbJpg = Rswift.ImageResource(bundle: R.hostingBundle, name: "zfb.jpg")
/// `UIImage(named: "Slice", bundle: ..., traitCollection: ...)`
static func slice(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.slice, compatibleWith: traitCollection)
}
/// `UIImage(named: "add", bundle: ..., traitCollection: ...)`
static func add(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.add, compatibleWith: traitCollection)
}
/// `UIImage(named: "help", bundle: ..., traitCollection: ...)`
static func help(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.help, compatibleWith: traitCollection)
}
/// `UIImage(named: "logo", bundle: ..., traitCollection: ...)`
static func logo(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.logo, compatibleWith: traitCollection)
}
/// `UIImage(named: "restart", bundle: ..., traitCollection: ...)`
static func restart(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.restart, compatibleWith: traitCollection)
}
/// `UIImage(named: "set", bundle: ..., traitCollection: ...)`
static func set(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.set, compatibleWith: traitCollection)
}
/// `UIImage(named: "setting", bundle: ..., traitCollection: ...)`
static func setting(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.setting, compatibleWith: traitCollection)
}
/// `UIImage(named: "settings", bundle: ..., traitCollection: ...)`
static func settings(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.settings, compatibleWith: traitCollection)
}
/// `UIImage(named: "trash", bundle: ..., traitCollection: ...)`
static func trash(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.trash, compatibleWith: traitCollection)
}
/// `UIImage(named: "wx.jpg", bundle: ..., traitCollection: ...)`
static func wxJpg(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.wxJpg, compatibleWith: traitCollection)
}
/// `UIImage(named: "zfb.jpg", bundle: ..., traitCollection: ...)`
static func zfbJpg(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.zfbJpg, compatibleWith: traitCollection)
}
fileprivate init() {}
}
/// This `R.nib` struct is generated, and contains static references to 0 nibs.
struct nib {
fileprivate init() {}
}
/// This `R.reuseIdentifier` struct is generated, and contains static references to 3 reuse identifiers.
struct reuseIdentifier {
/// Reuse identifier `licenseCell`.
static let licenseCell: Rswift.ReuseIdentifier<UIKit.UITableViewCell> = Rswift.ReuseIdentifier(identifier: "licenseCell")
/// Reuse identifier `settingCell`.
static let settingCell: Rswift.ReuseIdentifier<UIKit.UITableViewCell> = Rswift.ReuseIdentifier(identifier: "settingCell")
/// Reuse identifier `supportCell`.
static let supportCell: Rswift.ReuseIdentifier<UIKit.UITableViewCell> = Rswift.ReuseIdentifier(identifier: "supportCell")
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 2 localization tables.
struct string {
/// This `R.string.localizable` struct is generated, and contains static references to 1 localization keys.
struct localizable {
/// en translation: MOVE YOUR PHONE LEFT AND RIGHT
///
/// Locales: en, zh-Hans
static let mOVE = Rswift.StringResource(key: "MOVE", tableName: "Localizable", bundle: R.hostingBundle, locales: ["en", "zh-Hans"], comment: nil)
/// en translation: MOVE YOUR PHONE LEFT AND RIGHT
///
/// Locales: en, zh-Hans
static func mOVE(_: Void = ()) -> String {
return NSLocalizedString("MOVE", bundle: R.hostingBundle, comment: "")
}
fileprivate init() {}
}
/// This `R.string.main` struct is generated, and contains static references to 0 localization keys.
struct main {
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()
}
struct nib {
fileprivate init() {}
}
struct storyboard: Rswift.Validatable {
static func validate() throws {
try main.validate()
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 UIKit.UIImage(named: "logo") == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'logo' is used in storyboard 'LaunchScreen', but couldn't be loaded.") }
}
fileprivate init() {}
}
struct main: Rswift.StoryboardResourceWithInitialControllerType, Rswift.Validatable {
typealias InitialController = UIKit.UINavigationController
let aboutViewController = StoryboardViewControllerResource<AboutViewController>(identifier: "AboutViewController")
let bundle = R.hostingBundle
let donateViewController = StoryboardViewControllerResource<DonateViewController>(identifier: "DonateViewController")
let guideViewController = StoryboardViewControllerResource<UIKit.UIViewController>(identifier: "GuideViewController")
let name = "Main"
let questionViewController = StoryboardViewControllerResource<QuestionViewController>(identifier: "QuestionViewController")
let supportViewController = StoryboardViewControllerResource<SupportViewController>(identifier: "SupportViewController")
func aboutViewController(_: Void = ()) -> AboutViewController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: aboutViewController)
}
func donateViewController(_: Void = ()) -> DonateViewController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: donateViewController)
}
func guideViewController(_: Void = ()) -> UIKit.UIViewController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: guideViewController)
}
func questionViewController(_: Void = ()) -> QuestionViewController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: questionViewController)
}
func supportViewController(_: Void = ()) -> SupportViewController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: supportViewController)
}
static func validate() throws {
if UIKit.UIImage(named: "restart") == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'restart' is used in storyboard 'Main', but couldn't be loaded.") }
if UIKit.UIImage(named: "trash") == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'trash' is used in storyboard 'Main', but couldn't be loaded.") }
if UIKit.UIImage(named: "zfb.jpg") == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'zfb.jpg' is used in storyboard 'Main', but couldn't be loaded.") }
if UIKit.UIImage(named: "add") == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'add' is used in storyboard 'Main', but couldn't be loaded.") }
if UIKit.UIImage(named: "set") == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'set' is used in storyboard 'Main', but couldn't be loaded.") }
if UIKit.UIImage(named: "settings") == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'settings' is used in storyboard 'Main', but couldn't be loaded.") }
if UIKit.UIImage(named: "wx.jpg") == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'wx.jpg' is used in storyboard 'Main', but couldn't be loaded.") }
if UIKit.UIImage(named: "help") == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'help' is used in storyboard 'Main', but couldn't be loaded.") }
if UIKit.UIImage(named: "logo") == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'logo' is used in storyboard 'Main', but couldn't be loaded.") }
if UIKit.UIImage(named: "Slice") == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'Slice' is used in storyboard 'Main', but couldn't be loaded.") }
if UIKit.UIImage(named: "setting") == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'setting' is used in storyboard 'Main', but couldn't be loaded.") }
if _R.storyboard.main().donateViewController() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'donateViewController' could not be loaded from storyboard 'Main' as 'DonateViewController'.") }
if _R.storyboard.main().questionViewController() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'questionViewController' could not be loaded from storyboard 'Main' as 'QuestionViewController'.") }
if _R.storyboard.main().guideViewController() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'guideViewController' could not be loaded from storyboard 'Main' as 'UIKit.UIViewController'.") }
if _R.storyboard.main().supportViewController() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'supportViewController' could not be loaded from storyboard 'Main' as 'SupportViewController'.") }
if _R.storyboard.main().aboutViewController() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'aboutViewController' could not be loaded from storyboard 'Main' as 'AboutViewController'.") }
}
fileprivate init() {}
}
fileprivate init() {}
}
fileprivate init() {}
}