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

Add strikethrough modifier #781

Merged
merged 1 commit into from
Apr 11, 2023
Merged

Add strikethrough modifier #781

merged 1 commit into from
Apr 11, 2023

Conversation

carson-katri
Copy link
Contributor

@carson-katri carson-katri commented Apr 6, 2023

Closes #306

@bcardarella
Copy link
Collaborator

Is the string-through supposed to look like that? The line looks broken a few times through the word

@carson-katri
Copy link
Contributor Author

Yes, I used the :dash_dot pattern.

<Text modifiers={strikethrough(@native, color: :red, pattern: :dash_dot)} font="largeTitle" font-weight="heavy">Hello, world!</Text>

@carson-katri carson-katri merged commit f5003cc into main Apr 11, 2023
1 check passed
@carson-katri carson-katri deleted the strikethrough-modifier branch April 11, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modifier -> SwiftUI -> Text input and output: strikethrough(_:pattern:color:)
3 participants