Skip to content
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

Support foregroundColor for TextField #453

Merged
merged 2 commits into from
May 28, 2022
Merged

Support foregroundColor for TextField #453

merged 2 commits into from
May 28, 2022

Conversation

carson-katri
Copy link
Member

No description provided.

@carson-katri carson-katri added SwiftUI compatibility Tokamak API differences with SwiftUI DOM/HTML renderer Tokamak in the browser labels Oct 23, 2021
@MaxDesiatov
Copy link
Collaborator

MaxDesiatov commented Oct 23, 2021

The CI failure is fixed by #454, which has been merged.

@MaxDesiatov MaxDesiatov changed the title Support foregroundColor for TextField Support foregroundColor for TextField Oct 23, 2021
@MaxDesiatov MaxDesiatov changed the title Support foregroundColor for TextField Support foregroundColor for TextField Oct 23, 2021
@carson-katri
Copy link
Member Author

Great, thanks!

public var textFieldStyle: _AnyTextFieldStyle { subject.environment.textFieldStyle }
public var foregroundColor: AnyColorBox.ResolvedValue? {
guard let style = subject.environment._foregroundStyle else { return nil }
var shape = _ShapeStyle_Shape(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused why ShapeStyle specifically is used here. Could you clarify that in code comments?

@MaxDesiatov
Copy link
Collaborator

@carson-katri I'm thinking of tagging a new version in the next few days with support for async/await. Would you like this PR to be included? Would you have time to address PR feedback then?

@carson-katri
Copy link
Member Author

I should be able to get this finished up either tonight or tomorrow.

@MaxDesiatov
Copy link
Collaborator

No rush, many thanks for your contributions! 🙂

@MaxDesiatov
Copy link
Collaborator

MaxDesiatov commented Nov 26, 2021

Releasing 0.9.0 today, but I'm happy to tag 0.9.1 or whatever patch release would include this fix, when it's ready.

Copy link
Collaborator

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@carson-katri carson-katri merged commit 355c880 into main May 28, 2022
@carson-katri carson-katri deleted the textfield-color branch May 28, 2022 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DOM/HTML renderer Tokamak in the browser SwiftUI compatibility Tokamak API differences with SwiftUI
Development

Successfully merging this pull request may close these issues.

2 participants