-
Notifications
You must be signed in to change notification settings - Fork 0
/
R.generated.swift
324 lines (257 loc) · 13.9 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
//
// 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 3 colors.
struct color {
/// Color `flat_gray`.
static let flat_gray = Rswift.ColorResource(bundle: R.hostingBundle, name: "flat_gray")
/// Color `flat_red`.
static let flat_red = Rswift.ColorResource(bundle: R.hostingBundle, name: "flat_red")
/// Color `flat_refresh_gray`.
static let flat_refresh_gray = Rswift.ColorResource(bundle: R.hostingBundle, name: "flat_refresh_gray")
/// `UIColor(named: "flat_gray", bundle: ..., traitCollection: ...)`
@available(tvOS 11.0, *)
@available(iOS 11.0, *)
static func flat_gray(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIColor? {
return UIKit.UIColor(resource: R.color.flat_gray, compatibleWith: traitCollection)
}
/// `UIColor(named: "flat_red", bundle: ..., traitCollection: ...)`
@available(tvOS 11.0, *)
@available(iOS 11.0, *)
static func flat_red(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIColor? {
return UIKit.UIColor(resource: R.color.flat_red, compatibleWith: traitCollection)
}
/// `UIColor(named: "flat_refresh_gray", bundle: ..., traitCollection: ...)`
@available(tvOS 11.0, *)
@available(iOS 11.0, *)
static func flat_refresh_gray(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIColor? {
return UIKit.UIColor(resource: R.color.flat_refresh_gray, compatibleWith: traitCollection)
}
fileprivate init() {}
}
/// This `R.image` struct is generated, and contains static references to 6 images.
struct image {
/// Image `ic_add`.
static let ic_add = Rswift.ImageResource(bundle: R.hostingBundle, name: "ic_add")
/// Image `ic_barcode_display`.
static let ic_barcode_display = Rswift.ImageResource(bundle: R.hostingBundle, name: "ic_barcode_display")
/// Image `ic_barcode`.
static let ic_barcode = Rswift.ImageResource(bundle: R.hostingBundle, name: "ic_barcode")
/// Image `ic_edit`.
static let ic_edit = Rswift.ImageResource(bundle: R.hostingBundle, name: "ic_edit")
/// Image `ic_love`.
static let ic_love = Rswift.ImageResource(bundle: R.hostingBundle, name: "ic_love")
/// Image `ic_trash`.
static let ic_trash = Rswift.ImageResource(bundle: R.hostingBundle, name: "ic_trash")
/// `UIImage(named: "ic_add", bundle: ..., traitCollection: ...)`
static func ic_add(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.ic_add, compatibleWith: traitCollection)
}
/// `UIImage(named: "ic_barcode", bundle: ..., traitCollection: ...)`
static func ic_barcode(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.ic_barcode, compatibleWith: traitCollection)
}
/// `UIImage(named: "ic_barcode_display", bundle: ..., traitCollection: ...)`
static func ic_barcode_display(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.ic_barcode_display, compatibleWith: traitCollection)
}
/// `UIImage(named: "ic_edit", bundle: ..., traitCollection: ...)`
static func ic_edit(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.ic_edit, compatibleWith: traitCollection)
}
/// `UIImage(named: "ic_love", bundle: ..., traitCollection: ...)`
static func ic_love(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.ic_love, compatibleWith: traitCollection)
}
/// `UIImage(named: "ic_trash", bundle: ..., traitCollection: ...)`
static func ic_trash(compatibleWith traitCollection: UIKit.UITraitCollection? = nil) -> UIKit.UIImage? {
return UIKit.UIImage(resource: R.image.ic_trash, compatibleWith: traitCollection)
}
fileprivate init() {}
}
/// This `R.nib` struct is generated, and contains static references to 3 nibs.
struct nib {
/// Nib `AddItemDialog`.
static let addItemDialog = _R.nib._AddItemDialog()
/// Nib `ListItemHeader`.
static let listItemHeader = _R.nib._ListItemHeader()
/// Nib `ListItemTableViewCell`.
static let listItemTableViewCell = _R.nib._ListItemTableViewCell()
/// `UINib(name: "AddItemDialog", in: bundle)`
@available(*, deprecated, message: "Use UINib(resource: R.nib.addItemDialog) instead")
static func addItemDialog(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.addItemDialog)
}
/// `UINib(name: "ListItemHeader", in: bundle)`
@available(*, deprecated, message: "Use UINib(resource: R.nib.listItemHeader) instead")
static func listItemHeader(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.listItemHeader)
}
/// `UINib(name: "ListItemTableViewCell", in: bundle)`
@available(*, deprecated, message: "Use UINib(resource: R.nib.listItemTableViewCell) instead")
static func listItemTableViewCell(_: Void = ()) -> UIKit.UINib {
return UIKit.UINib(resource: R.nib.listItemTableViewCell)
}
static func addItemDialog(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> AddItemDialog? {
return R.nib.addItemDialog.instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? AddItemDialog
}
static func listItemHeader(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> UIKit.UITableViewCell? {
return R.nib.listItemHeader.instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? UIKit.UITableViewCell
}
static func listItemTableViewCell(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> ListItemTableViewCell? {
return R.nib.listItemTableViewCell.instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? ListItemTableViewCell
}
fileprivate init() {}
}
/// This `R.reuseIdentifier` struct is generated, and contains static references to 2 reuse identifiers.
struct reuseIdentifier {
/// Reuse identifier `ListItemHeader`.
static let listItemHeader: Rswift.ReuseIdentifier<UIKit.UITableViewCell> = Rswift.ReuseIdentifier(identifier: "ListItemHeader")
/// Reuse identifier `ListItemTableViewCell`.
static let listItemTableViewCell: Rswift.ReuseIdentifier<ListItemTableViewCell> = Rswift.ReuseIdentifier(identifier: "ListItemTableViewCell")
fileprivate init() {}
}
/// This `R.storyboard` struct is generated, and contains static references to 3 storyboards.
struct storyboard {
/// Storyboard `EditItem`.
static let editItem = _R.storyboard.editItem()
/// Storyboard `LaunchScreen`.
static let launchScreen = _R.storyboard.launchScreen()
/// Storyboard `ListItem`.
static let listItem = _R.storyboard.listItem()
/// `UIStoryboard(name: "EditItem", bundle: ...)`
static func editItem(_: Void = ()) -> UIKit.UIStoryboard {
return UIKit.UIStoryboard(resource: R.storyboard.editItem)
}
/// `UIStoryboard(name: "LaunchScreen", bundle: ...)`
static func launchScreen(_: Void = ()) -> UIKit.UIStoryboard {
return UIKit.UIStoryboard(resource: R.storyboard.launchScreen)
}
/// `UIStoryboard(name: "ListItem", bundle: ...)`
static func listItem(_: Void = ()) -> UIKit.UIStoryboard {
return UIKit.UIStoryboard(resource: R.storyboard.listItem)
}
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 _AddItemDialog.validate()
try _ListItemTableViewCell.validate()
}
struct _AddItemDialog: Rswift.NibResourceType, Rswift.Validatable {
let bundle = R.hostingBundle
let name = "AddItemDialog"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> AddItemDialog? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? AddItemDialog
}
static func validate() throws {
if UIKit.UIImage(named: "ic_add", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'ic_add' is used in nib 'AddItemDialog', but couldn't be loaded.") }
if #available(iOS 11.0, *) {
}
}
fileprivate init() {}
}
struct _ListItemHeader: Rswift.NibResourceType, Rswift.ReuseIdentifierType {
typealias ReusableType = UIKit.UITableViewCell
let bundle = R.hostingBundle
let identifier = "ListItemHeader"
let name = "ListItemHeader"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> UIKit.UITableViewCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? UIKit.UITableViewCell
}
fileprivate init() {}
}
struct _ListItemTableViewCell: Rswift.NibResourceType, Rswift.ReuseIdentifierType, Rswift.Validatable {
typealias ReusableType = ListItemTableViewCell
let bundle = R.hostingBundle
let identifier = "ListItemTableViewCell"
let name = "ListItemTableViewCell"
func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> ListItemTableViewCell? {
return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? ListItemTableViewCell
}
static func validate() throws {
if UIKit.UIImage(named: "ic_barcode_display", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'ic_barcode_display' is used in nib 'ListItemTableViewCell', but couldn't be loaded.") }
if #available(iOS 11.0, *) {
}
}
fileprivate init() {}
}
fileprivate init() {}
}
struct storyboard: Rswift.Validatable {
static func validate() throws {
try editItem.validate()
try launchScreen.validate()
try listItem.validate()
}
struct editItem: Rswift.StoryboardResourceType, Rswift.Validatable {
let bundle = R.hostingBundle
let editItemViewControllerID = StoryboardViewControllerResource<EditItemViewController>(identifier: "EditItemViewControllerID")
let name = "EditItem"
func editItemViewControllerID(_: Void = ()) -> EditItemViewController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: editItemViewControllerID)
}
static func validate() throws {
if UIKit.UIImage(named: "ic_barcode", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'ic_barcode' is used in storyboard 'EditItem', but couldn't be loaded.") }
if UIKit.UIImage(named: "ic_edit", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'ic_edit' is used in storyboard 'EditItem', but couldn't be loaded.") }
if #available(iOS 11.0, *) {
}
if _R.storyboard.editItem().editItemViewControllerID() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'editItemViewControllerID' could not be loaded from storyboard 'EditItem' as 'EditItemViewController'.") }
}
fileprivate init() {}
}
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() {}
}
struct listItem: Rswift.StoryboardResourceWithInitialControllerType, Rswift.Validatable {
typealias InitialController = ListItemViewController
let bundle = R.hostingBundle
let listItemViewControllerID = StoryboardViewControllerResource<ListItemViewController>(identifier: "ListItemViewControllerID")
let name = "ListItem"
func listItemViewControllerID(_: Void = ()) -> ListItemViewController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: listItemViewControllerID)
}
static func validate() throws {
if UIKit.UIImage(named: "ic_add", in: R.hostingBundle, compatibleWith: nil) == nil { throw Rswift.ValidationError(description: "[R.swift] Image named 'ic_add' is used in storyboard 'ListItem', but couldn't be loaded.") }
if #available(iOS 11.0, *) {
}
if _R.storyboard.listItem().listItemViewControllerID() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'listItemViewControllerID' could not be loaded from storyboard 'ListItem' as 'ListItemViewController'.") }
}
fileprivate init() {}
}
fileprivate init() {}
}
fileprivate init() {}
}