-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from Vline-App/footer_show_version
Add ability to display the version as a footnote
- Loading branch information
Showing
3 changed files
with
51 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import SwiftUI | ||
|
||
// MARK: - WhatsNew+VersionTextConfiguration | ||
|
||
public extension WhatsNew { | ||
|
||
/// The WhatsNew VersionTextConfiguration | ||
struct VersionTextConfiguration { | ||
|
||
// MARK: Properties | ||
|
||
/// The version text font | ||
public var font: Font | ||
|
||
/// The foreground color | ||
public var foregroundColor: Color | ||
|
||
// MARK: Initializer | ||
|
||
/// Creates a new instance of `WhatsNew.VersionTextConfiguration` | ||
/// - Parameters: | ||
/// - font: The version text font. Default value `.footnote` | ||
/// - foregroundColor: The foreground color. Default value `.primary` | ||
public init( | ||
font: Font = .footnote, | ||
foregroundColor: Color = .primary | ||
) { | ||
self.font = font | ||
self.foregroundColor = foregroundColor | ||
} | ||
|
||
} | ||
|
||
} |
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