-
Notifications
You must be signed in to change notification settings - Fork 1
/
R.generated.swift
299 lines (237 loc) · 11.5 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
// 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 code generated, and contains references to static resources.
struct R: Rswift.Validatable {
static func validate() throws {
try intern.validate()
}
/// This `R.color` struct is generated, and contains static references to 0 color palettes.
struct color {
private init() {}
}
/// This `R.file` struct is generated, and contains static references to 4 files.
struct file {
/// Resource file `Gotham-Black.otf`.
static let gothamBlackOtf = FileResource(bundle: _R.hostingBundle, name: "Gotham-Black", pathExtension: "otf")
/// Resource file `Gotham-Book.otf`.
static let gothamBookOtf = FileResource(bundle: _R.hostingBundle, name: "Gotham-Book", pathExtension: "otf")
/// Resource file `Gotham-Medium.otf`.
static let gothamMediumOtf = FileResource(bundle: _R.hostingBundle, name: "Gotham-Medium", pathExtension: "otf")
/// Resource file `Lora-Regular.ttf`.
static let loraRegularTtf = FileResource(bundle: _R.hostingBundle, name: "Lora-Regular", pathExtension: "ttf")
/// `bundle.URLForResource("Gotham-Black", withExtension: "otf")`
static func gothamBlackOtf(_: Void) -> NSURL? {
let fileResource = R.file.gothamBlackOtf
return fileResource.bundle.URLForResource(fileResource)
}
/// `bundle.URLForResource("Gotham-Book", withExtension: "otf")`
static func gothamBookOtf(_: Void) -> NSURL? {
let fileResource = R.file.gothamBookOtf
return fileResource.bundle.URLForResource(fileResource)
}
/// `bundle.URLForResource("Gotham-Medium", withExtension: "otf")`
static func gothamMediumOtf(_: Void) -> NSURL? {
let fileResource = R.file.gothamMediumOtf
return fileResource.bundle.URLForResource(fileResource)
}
/// `bundle.URLForResource("Lora-Regular", withExtension: "ttf")`
static func loraRegularTtf(_: Void) -> NSURL? {
let fileResource = R.file.loraRegularTtf
return fileResource.bundle.URLForResource(fileResource)
}
private init() {}
}
/// This `R.font` struct is generated, and contains static references to 4 fonts.
struct font {
/// Font `Gotham-Black`.
static let gothamBlack = FontResource(fontName: "Gotham-Black")
/// Font `Gotham-Book`.
static let gothamBook = FontResource(fontName: "Gotham-Book")
/// Font `Gotham-Medium`.
static let gothamMedium = FontResource(fontName: "Gotham-Medium")
/// Font `Lora-Regular`.
static let loraRegular = FontResource(fontName: "Lora-Regular")
/// `UIFont(name: "Gotham-Black", size: ...)`
static func gothamBlack(size size: CGFloat) -> UIFont? {
return UIFont(resource: gothamBlack, size: size)
}
/// `UIFont(name: "Gotham-Book", size: ...)`
static func gothamBook(size size: CGFloat) -> UIFont? {
return UIFont(resource: gothamBook, size: size)
}
/// `UIFont(name: "Gotham-Medium", size: ...)`
static func gothamMedium(size size: CGFloat) -> UIFont? {
return UIFont(resource: gothamMedium, size: size)
}
/// `UIFont(name: "Lora-Regular", size: ...)`
static func loraRegular(size size: CGFloat) -> UIFont? {
return UIFont(resource: loraRegular, size: size)
}
private init() {}
}
/// This `R.image` struct is generated, and contains static references to 6 images.
struct image {
/// Image `tab-faq`.
static let tabFaq = ImageResource(bundle: _R.hostingBundle, name: "tab-faq")
/// Image `tab-faq-filled`.
static let tabFaqFilled = ImageResource(bundle: _R.hostingBundle, name: "tab-faq-filled")
/// Image `tab-resources`.
static let tabResources = ImageResource(bundle: _R.hostingBundle, name: "tab-resources")
/// Image `tab-resources-filled`.
static let tabResourcesFilled = ImageResource(bundle: _R.hostingBundle, name: "tab-resources-filled")
/// Image `tab-schedule`.
static let tabSchedule = ImageResource(bundle: _R.hostingBundle, name: "tab-schedule")
/// Image `tab-schedule-filled`.
static let tabScheduleFilled = ImageResource(bundle: _R.hostingBundle, name: "tab-schedule-filled")
/// `UIImage(named: "tab-faq", bundle: ..., traitCollection: ...)`
static func tabFaq(compatibleWithTraitCollection traitCollection: UITraitCollection? = nil) -> UIImage? {
return UIImage(resource: R.image.tabFaq, compatibleWithTraitCollection: traitCollection)
}
/// `UIImage(named: "tab-faq-filled", bundle: ..., traitCollection: ...)`
static func tabFaqFilled(compatibleWithTraitCollection traitCollection: UITraitCollection? = nil) -> UIImage? {
return UIImage(resource: R.image.tabFaqFilled, compatibleWithTraitCollection: traitCollection)
}
/// `UIImage(named: "tab-resources", bundle: ..., traitCollection: ...)`
static func tabResources(compatibleWithTraitCollection traitCollection: UITraitCollection? = nil) -> UIImage? {
return UIImage(resource: R.image.tabResources, compatibleWithTraitCollection: traitCollection)
}
/// `UIImage(named: "tab-resources-filled", bundle: ..., traitCollection: ...)`
static func tabResourcesFilled(compatibleWithTraitCollection traitCollection: UITraitCollection? = nil) -> UIImage? {
return UIImage(resource: R.image.tabResourcesFilled, compatibleWithTraitCollection: traitCollection)
}
/// `UIImage(named: "tab-schedule", bundle: ..., traitCollection: ...)`
static func tabSchedule(compatibleWithTraitCollection traitCollection: UITraitCollection? = nil) -> UIImage? {
return UIImage(resource: R.image.tabSchedule, compatibleWithTraitCollection: traitCollection)
}
/// `UIImage(named: "tab-schedule-filled", bundle: ..., traitCollection: ...)`
static func tabScheduleFilled(compatibleWithTraitCollection traitCollection: UITraitCollection? = nil) -> UIImage? {
return UIImage(resource: R.image.tabScheduleFilled, compatibleWithTraitCollection: traitCollection)
}
private init() {}
}
private struct intern: Rswift.Validatable {
static func validate() throws {
try _R.validate()
}
private init() {}
}
/// This `R.nib` struct is generated, and contains static references to 0 nibs.
struct nib {
private init() {}
}
/// This `R.reuseIdentifier` struct is generated, and contains static references to 2 reuse identifiers.
struct reuseIdentifier {
/// Reuse identifier `FAQCell`.
static let fAQCell: ReuseIdentifier<FAQCell> = ReuseIdentifier(identifier: "FAQCell")
/// Reuse identifier `ScheduleCell`.
static let scheduleCell: ReuseIdentifier<UITableViewCell> = ReuseIdentifier(identifier: "ScheduleCell")
private init() {}
}
/// This `R.segue` struct is generated, and contains static references to 0 view controllers.
struct segue {
private init() {}
}
/// This `R.storyboard` struct is generated, and contains static references to 5 storyboards.
struct storyboard {
/// Storyboard `FAQ`.
static let fAQ = _R.storyboard.fAQ()
/// Storyboard `LaunchScreen`.
static let launchScreen = _R.storyboard.launchScreen()
/// Storyboard `Main`.
static let main = _R.storyboard.main()
/// Storyboard `Resources`.
static let resources = _R.storyboard.resources()
/// Storyboard `Schedule`.
static let schedule = _R.storyboard.schedule()
/// `UIStoryboard(name: "FAQ", bundle: ...)`
static func fAQ(_: Void) -> UIStoryboard {
return UIStoryboard(resource: R.storyboard.fAQ)
}
/// `UIStoryboard(name: "LaunchScreen", bundle: ...)`
static func launchScreen(_: Void) -> UIStoryboard {
return UIStoryboard(resource: R.storyboard.launchScreen)
}
/// `UIStoryboard(name: "Main", bundle: ...)`
static func main(_: Void) -> UIStoryboard {
return UIStoryboard(resource: R.storyboard.main)
}
/// `UIStoryboard(name: "Resources", bundle: ...)`
static func resources(_: Void) -> UIStoryboard {
return UIStoryboard(resource: R.storyboard.resources)
}
/// `UIStoryboard(name: "Schedule", bundle: ...)`
static func schedule(_: Void) -> UIStoryboard {
return UIStoryboard(resource: R.storyboard.schedule)
}
private init() {}
}
/// This `R.string` struct is generated, and contains static references to 0 localization tables.
struct string {
private init() {}
}
private init() {}
}
struct _R: Rswift.Validatable {
static let applicationLocale = hostingBundle.preferredLocalizations.first.flatMap(NSLocale.init) ?? NSLocale.currentLocale()
static let hostingBundle = NSBundle(identifier: "com.kylebashour.VolHacks") ?? NSBundle.mainBundle()
static func validate() throws {
try storyboard.validate()
}
struct nib {
private init() {}
}
struct storyboard: Rswift.Validatable {
static func validate() throws {
try fAQ.validate()
try resources.validate()
try schedule.validate()
}
struct fAQ: StoryboardResourceWithInitialControllerType, Rswift.Validatable {
typealias InitialController = UINavigationController
let bundle = _R.hostingBundle
let name = "FAQ"
static func validate() throws {
if UIImage(named: "tab-faq") == nil { throw ValidationError(description: "[R.swift] Image named 'tab-faq' is used in storyboard 'FAQ', but couldn't be loaded.") }
if UIImage(named: "tab-faq-filled") == nil { throw ValidationError(description: "[R.swift] Image named 'tab-faq-filled' is used in storyboard 'FAQ', but couldn't be loaded.") }
}
private init() {}
}
struct launchScreen: StoryboardResourceWithInitialControllerType {
typealias InitialController = UIViewController
let bundle = _R.hostingBundle
let name = "LaunchScreen"
private init() {}
}
struct main: StoryboardResourceWithInitialControllerType {
typealias InitialController = UITabBarController
let bundle = _R.hostingBundle
let name = "Main"
private init() {}
}
struct resources: StoryboardResourceWithInitialControllerType, Rswift.Validatable {
typealias InitialController = UINavigationController
let bundle = _R.hostingBundle
let name = "Resources"
static func validate() throws {
if UIImage(named: "tab-resources-filled") == nil { throw ValidationError(description: "[R.swift] Image named 'tab-resources-filled' is used in storyboard 'Resources', but couldn't be loaded.") }
if UIImage(named: "tab-resources") == nil { throw ValidationError(description: "[R.swift] Image named 'tab-resources' is used in storyboard 'Resources', but couldn't be loaded.") }
}
private init() {}
}
struct schedule: StoryboardResourceWithInitialControllerType, Rswift.Validatable {
typealias InitialController = UINavigationController
let bundle = _R.hostingBundle
let name = "Schedule"
static func validate() throws {
if UIImage(named: "tab-schedule") == nil { throw ValidationError(description: "[R.swift] Image named 'tab-schedule' is used in storyboard 'Schedule', but couldn't be loaded.") }
if UIImage(named: "tab-schedule-filled") == nil { throw ValidationError(description: "[R.swift] Image named 'tab-schedule-filled' is used in storyboard 'Schedule', but couldn't be loaded.") }
}
private init() {}
}
private init() {}
}
private init() {}
}