Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,17 @@ private class ShadowView: UIView, Shadowable {
private let label = Label()
}

private extension FluentTheme.ShadowToken {
extension FluentTheme.ShadowToken: @retroactive CaseIterable {
public static var allCases: [FluentTheme.ShadowToken] = [
.clear,
.shadow02,
.shadow04,
.shadow08,
.shadow16,
.shadow28,
.shadow64
]

var title: String {
switch self {
case .clear:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,22 @@ class TypographyTokensDemoController: DemoTableViewController {

// MARK: - Private extensions

private extension FluentTheme.TypographyToken {
extension FluentTheme.TypographyToken: @retroactive CaseIterable {
public static var allCases: [FluentTheme.TypographyToken] = [
.display,
.largeTitle,
.title1,
.title2,
.title3,
.body1Strong,
.body1,
.body2Strong,
.body2,
.caption1Strong,
.caption1,
.caption2
]

var text: String {
switch self {
case .display:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ struct ContentView: View {
Text(testViewController.title)
}
}
NavigationLink(destination: TestAliasColorTokensViewController()) {
Text("Alias Color Tokens")
}
}
.listStyle(SidebarListStyle())
}
Expand Down
Loading
Loading