-
Notifications
You must be signed in to change notification settings - Fork 106
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 support for variables in text style. #371
base: master
Are you sure you want to change the base?
Conversation
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.
You added the ability to add text style via String
, but what about adding it via expression?
You can see the implementation in the Java PR
Also I've added a new expression myself to the iOS SDK, you can see it in the branch:
feature/angle_expression
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.
Hi Alex
Please break this PR into two separate PR's
One for text style
And the other for expression normalization
Also please fix an comment I remarked on the expression normalization
guard !currentKey.isEmpty && !currentValue.isEmpty else { | ||
|
||
guard !currentKey.isEmpty else { | ||
if allSpaceAndOrDash { |
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.
A specific use case of regex expression should not impact the asString()
function
This should be handled in the Regex expression and not outside of it
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 understood that this is the new requirements (according to Patriks tests)
Meaning if the value contains "allSpaceAndOrDash" then asString() should return "_" otherwise the tests fail.
Brief Summary of Changes
Add support for variables in text style.
What does this PR address?
Are tests included?
Reviewer, please note:
Checklist: