Skip to content

Commit 2f66be5

Browse files
authored
Merge pull request #5313 from woocommerce/fix/warnings-under-Xcode-13
Fix: warnings in `AttributedText` view under Xcode 13
2 parents b9d1699 + 1166ca6 commit 2f66be5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WooCommerce/Classes/ViewRelated/ReusableViews/SwiftUI Components/AttributedText.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ extension EnvironmentValues {
197197

198198
private extension EnvironmentValues {
199199
var foregroundColor: Color? {
200-
get { self[ForegroundColorKey] }
201-
set { self[ForegroundColorKey] = newValue }
200+
get { self[ForegroundColorKey.self] }
201+
set { self[ForegroundColorKey.self] = newValue }
202202
}
203203

204204
var linkColor: Color? {
205-
get { self[LinkColorKey] }
206-
set { self[LinkColorKey] = newValue }
205+
get { self[LinkColorKey.self] }
206+
set { self[LinkColorKey.self] = newValue }
207207
}
208208
}
209209

0 commit comments

Comments
 (0)