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

String transforms #275

Merged
merged 9 commits into from
Mar 27, 2017
Merged

String transforms #275

merged 9 commits into from
Mar 27, 2017

Conversation

ZevEisenberg
Copy link
Collaborator

Fixes #26.

@@ -173,7 +174,21 @@ extension StringStyle {
return attributedString
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

#? @KingOfBrian this is working, but how? If we return here, we won't ever get to the transform. I built this the other night, and everything seems to be working, but I can't see how.

Copy link
Contributor

Choose a reason for hiding this comment

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

The XML Builder will call this again and again as it builds the XML string.

func foundNew(string theString: String) {
let newAttributedString = topStyle.attributedString(from: theString)
attributedString.append(newAttributedString)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be able to pull more logic in here, a bunch of duplication below.

@ZevEisenberg ZevEisenberg merged commit 79a2c0b into master Mar 27, 2017
@ZevEisenberg ZevEisenberg deleted the feature/26-string-transforms branch March 27, 2017 14:51
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.

2 participants