-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathR.generated.swift
More file actions
161 lines (124 loc) · 4.81 KB
/
R.generated.swift
File metadata and controls
161 lines (124 loc) · 4.81 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
//
// 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 0 files.
struct file {
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 0 images.
struct image {
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 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 3 storyboards.
struct storyboard {
/// Storyboard `LaunchScreen`.
static let launchScreen = _R.storyboard.launchScreen()
/// Storyboard `Main`.
static let main = _R.storyboard.main()
/// Storyboard `Page1`.
static let page1 = _R.storyboard.page1()
/// `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)
}
/// `UIStoryboard(name: "Page1", bundle: ...)`
static func page1(_: Void = ()) -> UIKit.UIStoryboard {
return UIKit.UIStoryboard(resource: R.storyboard.page1)
}
fileprivate init() {}
}
/// This `R.string` struct is generated, and contains static references to 0 localization tables.
struct string {
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 page1.validate()
try main.validate()
}
struct launchScreen: Rswift.StoryboardResourceWithInitialControllerType {
typealias InitialController = UIKit.UIViewController
let bundle = R.hostingBundle
let name = "LaunchScreen"
fileprivate init() {}
}
struct main: Rswift.StoryboardResourceWithInitialControllerType, Rswift.Validatable {
typealias InitialController = ViewController
let bundle = R.hostingBundle
let main = StoryboardViewControllerResource<ViewController>(identifier: "Main")
let name = "Main"
func main(_: Void = ()) -> ViewController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: main)
}
static func validate() throws {
if _R.storyboard.main().main() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'main' could not be loaded from storyboard 'Main' as 'ViewController'.") }
}
fileprivate init() {}
}
struct page1: Rswift.StoryboardResourceType, Rswift.Validatable {
let bundle = R.hostingBundle
let name = "Page1"
let page1 = StoryboardViewControllerResource<Page1ViewController>(identifier: "Page1")
func page1(_: Void = ()) -> Page1ViewController? {
return UIKit.UIStoryboard(resource: self).instantiateViewController(withResource: page1)
}
static func validate() throws {
if _R.storyboard.page1().page1() == nil { throw Rswift.ValidationError(description:"[R.swift] ViewController with identifier 'page1' could not be loaded from storyboard 'Page1' as 'Page1ViewController'.") }
}
fileprivate init() {}
}
fileprivate init() {}
}
fileprivate init() {}
}