-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Extend configuration #141
Conversation
@@ -191,7 +191,7 @@ extension RichTextCoordinator { | |||
extension ColorRepresentable { | |||
|
|||
#if iOS || os(tvOS) || os(visionOS) | |||
static var textColor: ColorRepresentable { .label } | |||
public static var textColor: ColorRepresentable { .label } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can even keep this it is in dependent PR for themes (default text color etc.) Just a note 😅
@@ -45,9 +45,10 @@ final class RichTextViewComponentTests: XCTestCase { | |||
func testSettingUpWithEmptyTextWorks() { | |||
let string = NSAttributedString(string: "") | |||
view.setup(with: string, format: .rtf) | |||
view.configuration = .standard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This raises question if configuration shouldn't be passed to setup instead... This feels like API is all over the place, your thoughts @danielsaidi ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking we should inject it into the environment in SwiftUI.
[Feature] Add Theme Config
Btw this fixes #132 😍 |
Great job! |
What this PR do:
How to test it