-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🎸 [HCPSDKFIORIUIKIT-2683] [SwiftUI] Slider
- Loading branch information
1 parent
9dff880
commit c0d01c3
Showing
38 changed files
with
5,357 additions
and
1 deletion.
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
804 changes: 804 additions & 0 deletions
804
Apps/Examples/Examples/FioriSwiftUICore/Slider/SliderExample.swift
Large diffs are not rendered by default.
Oops, something went wrong.
683 changes: 683 additions & 0 deletions
683
Sources/FioriSwiftUICore/DataTypes/FioriSlider+DataType.swift
Large diffs are not rendered by default.
Oops, something went wrong.
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
35 changes: 35 additions & 0 deletions
35
Sources/FioriSwiftUICore/_FioriStyles/ActiveTrackStyle.fiori.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,35 @@ | ||
import FioriThemeManager | ||
|
||
// Generated using Sourcery 2.1.7 — https://github.com/krzysztofzablocki/Sourcery | ||
// DO NOT EDIT | ||
import Foundation | ||
import SwiftUI | ||
|
||
/** | ||
This file provides default fiori style for the component. | ||
|
||
1. Uncomment the following code. | ||
2. Implement layout and style in corresponding places. | ||
3. Delete `.generated` from file name. | ||
4. Move this file to `_FioriStyles` folder under `FioriSwiftUICore`. | ||
*/ | ||
|
||
// Base Layout style | ||
public struct ActiveTrackBaseStyle: ActiveTrackStyle { | ||
@ViewBuilder | ||
public func makeBody(_ configuration: ActiveTrackConfiguration) -> some View { | ||
// Add default layout here | ||
configuration.activeTrack | ||
} | ||
} | ||
|
||
// Default fiori styles | ||
public struct ActiveTrackFioriStyle: ActiveTrackStyle { | ||
@ViewBuilder | ||
public func makeBody(_ configuration: ActiveTrackConfiguration) -> some View { | ||
ActiveTrack(configuration) | ||
// Add default style here | ||
// .foregroundStyle(Color.preferredColor(<#fiori color#>)) | ||
// .font(.fiori(forTextStyle: <#fiori font#>)) | ||
} | ||
} |
Oops, something went wrong.