Skip to content

Commit 1757480

Browse files
committed
Add a note about how to configure text color and font.
1 parent 303e012 commit 1757480

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ import SwiftUI
2525
SOFTWARE.
2626
*/
2727

28+
/// Note: the font and foreground color of the text have to be set in `NSAttributedString`'s attributes.
29+
/// `font` and `attributedTextForegroundColor` functions do not take effect.
30+
/// The link color can be set with `attributedTextLinkColor`.
2831
struct AttributedText: View {
2932
@StateObject private var textViewStore = TextViewStore()
3033

0 commit comments

Comments
 (0)