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 Text concatenation via + operator #174

Merged
merged 1 commit into from
Jul 12, 2020
Merged

Add Text concatenation via + operator #174

merged 1 commit into from
Jul 12, 2020

Conversation

carson-katri
Copy link
Member

Text("This text is ") + Text("concatenated").bold()

results in:

This text is concatenated

(Text("This text is ") + Text("concatenated").bold())
  .italic()

results in:

This text is concatenated

@carson-katri carson-katri added the SwiftUI compatibility Tokamak API differences with SwiftUI label Jul 11, 2020
@carson-katri carson-katri requested review from MaxDesiatov and j-f1 July 11, 2020 22:40
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.

👍

@carson-katri
Copy link
Member Author

carson-katri commented Jul 12, 2020

@MaxDesiatov do you know why the operator is not included with the typealias? I don’t understand why that would be...

@MaxDesiatov
Copy link
Collaborator

IDK, maybe because it's defined in an extension? Although I thought all public members of extensions get exported through typealiases. Maybe I'm missing something, need to have a closer look to say for sure.

@carson-katri carson-katri merged commit 97406f1 into main Jul 12, 2020
@carson-katri carson-katri deleted the text-addition branch July 12, 2020 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SwiftUI compatibility Tokamak API differences with SwiftUI
Development

Successfully merging this pull request may close these issues.

2 participants