Skip to content

Commit

Permalink
workaround to pass git hub action
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhaiteng committed Jan 16, 2024
1 parent cf1488e commit 445552e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Common/Text+Ext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public extension Text {
/// Wrap text foregraound method to make devloper setup text foreground with consistent statement on different os version.
func compatibleForeground<T: CompatibleForegroundProxy>(_ compatibleObj: T) -> Text {
if #available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *) {
return foregroundStyle(compatibleObj.style)
return foregroundStyle(compatibleObj.style) as! Text
} else {
return foregroundColor(compatibleObj.color)
}
Expand Down

0 comments on commit 445552e

Please sign in to comment.