-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Signed-off-by: Pierre-Yves Lapersonne <[email protected]> Co-authored-by: Pierre-Yves Lapersonne <[email protected]> Co-authored-by: Ludovic Pinel <[email protected]>
- Loading branch information
Showing
13 changed files
with
551 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
Showcase/Showcase.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
Showcase/Showcase/Pages/Tokens/Dimension/Size/NamedSize/NamedSize+IconDecorative.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// Software Name: OUDS iOS | ||
// SPDX-FileCopyrightText: Copyright (c) Orange SA | ||
// SPDX-License-Identifier: MIT | ||
// | ||
// This software is distributed under the MIT license, | ||
// the text of which is available at https://opensource.org/license/MIT/ | ||
// or see the "LICENSE" file for more details. | ||
// | ||
// Authors: See CONTRIBUTORS.txt | ||
// Software description: A SwiftUI components library with code examples for Orange Unified Design System | ||
// | ||
|
||
import OUDS | ||
import OUDSTokensSemantic | ||
|
||
extension NamedSize { | ||
enum IconDecorative: String, CaseIterable { | ||
case sizeIconDecorativeShortest | ||
case sizeIconDecorativeShorter | ||
case sizeIconDecorativeShort | ||
case sizeIconDecorativeMedium | ||
case sizeIconDecorativeTall | ||
case sizeIconDecorativeTaller | ||
case sizeIconDecorativeTallest | ||
|
||
func token(from theme: OUDSTheme) -> SizeSemanticToken { | ||
switch self { | ||
case .sizeIconDecorativeShortest: | ||
return theme.sizeIconDecorativeShortest | ||
case .sizeIconDecorativeShorter: | ||
return theme.sizeIconDecorativeShorter | ||
case .sizeIconDecorativeShort: | ||
return theme.sizeIconDecorativeShort | ||
case .sizeIconDecorativeMedium: | ||
return theme.sizeIconDecorativeMedium | ||
case .sizeIconDecorativeTall: | ||
return theme.sizeIconDecorativeTall | ||
case .sizeIconDecorativeTaller: | ||
return theme.sizeIconDecorativeTaller | ||
case .sizeIconDecorativeTallest: | ||
return theme.sizeIconDecorativeTallest | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.