-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathR.generated.swift
More file actions
159 lines (125 loc) · 5.77 KB
/
R.generated.swift
File metadata and controls
159 lines (125 loc) · 5.77 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
//
// 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 font.validate()
try intern.validate()
}
/// This `R.file` struct is generated, and contains static references to 2 files.
struct file {
/// Resource file `Classes.md`.
static let classesMd = Rswift.FileResource(bundle: R.hostingBundle, name: "Classes", pathExtension: "md")
/// Resource file `OFL.txt`.
static let oflTxt = Rswift.FileResource(bundle: R.hostingBundle, name: "OFL", pathExtension: "txt")
/// `bundle.url(forResource: "Classes", withExtension: "md")`
static func classesMd(_: Void = ()) -> Foundation.URL? {
let fileResource = R.file.classesMd
return fileResource.bundle.url(forResource: fileResource)
}
/// `bundle.url(forResource: "OFL", withExtension: "txt")`
static func oflTxt(_: Void = ()) -> Foundation.URL? {
let fileResource = R.file.oflTxt
return fileResource.bundle.url(forResource: fileResource)
}
fileprivate init() {}
}
/// This `R.font` struct is generated, and contains static references to 4 fonts.
struct font: Rswift.Validatable {
/// Font `NotoSerifSC-Bold`.
static let notoSerifSCBold = Rswift.FontResource(fontName: "NotoSerifSC-Bold")
/// Font `NotoSerifSC-Medium`.
static let notoSerifSCMedium = Rswift.FontResource(fontName: "NotoSerifSC-Medium")
/// Font `NotoSerifSC-Regular`.
static let notoSerifSCRegular = Rswift.FontResource(fontName: "NotoSerifSC-Regular")
/// Font `NotoSerifSC-SemiBold`.
static let notoSerifSCSemiBold = Rswift.FontResource(fontName: "NotoSerifSC-SemiBold")
/// `UIFont(name: "NotoSerifSC-Bold", size: ...)`
static func notoSerifSCBold(size: CGFloat) -> UIKit.UIFont? {
return UIKit.UIFont(resource: notoSerifSCBold, size: size)
}
/// `UIFont(name: "NotoSerifSC-Medium", size: ...)`
static func notoSerifSCMedium(size: CGFloat) -> UIKit.UIFont? {
return UIKit.UIFont(resource: notoSerifSCMedium, size: size)
}
/// `UIFont(name: "NotoSerifSC-Regular", size: ...)`
static func notoSerifSCRegular(size: CGFloat) -> UIKit.UIFont? {
return UIKit.UIFont(resource: notoSerifSCRegular, size: size)
}
/// `UIFont(name: "NotoSerifSC-SemiBold", size: ...)`
static func notoSerifSCSemiBold(size: CGFloat) -> UIKit.UIFont? {
return UIKit.UIFont(resource: notoSerifSCSemiBold, size: size)
}
static func validate() throws {
if R.font.notoSerifSCBold(size: 42) == nil { throw Rswift.ValidationError(description:"[R.swift] Font 'NotoSerifSC-Bold' could not be loaded, is 'NotoSerifSC-Bold.otf' added to the UIAppFonts array in this targets Info.plist?") }
if R.font.notoSerifSCMedium(size: 42) == nil { throw Rswift.ValidationError(description:"[R.swift] Font 'NotoSerifSC-Medium' could not be loaded, is 'NotoSerifSC-Medium.otf' added to the UIAppFonts array in this targets Info.plist?") }
if R.font.notoSerifSCRegular(size: 42) == nil { throw Rswift.ValidationError(description:"[R.swift] Font 'NotoSerifSC-Regular' could not be loaded, is 'NotoSerifSC-Regular.otf' added to the UIAppFonts array in this targets Info.plist?") }
if R.font.notoSerifSCSemiBold(size: 42) == nil { throw Rswift.ValidationError(description:"[R.swift] Font 'NotoSerifSC-SemiBold' could not be loaded, is 'NotoSerifSC-SemiBold.otf' added to the UIAppFonts array in this targets Info.plist?") }
}
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() {}
}
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 storyboard: Rswift.Validatable {
static func validate() throws {
try launchScreen.validate()
try main.validate()
}
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 main: Rswift.StoryboardResourceWithInitialControllerType, Rswift.Validatable {
typealias InitialController = ViewController
let bundle = R.hostingBundle
let name = "Main"
static func validate() throws {
if #available(iOS 11.0, *) {
}
}
fileprivate init() {}
}
fileprivate init() {}
}
fileprivate init() {}
}