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 support for Swift 4.2 #25

Merged
merged 1 commit into from
Oct 14, 2018
Merged

Add support for Swift 4.2 #25

merged 1 commit into from
Oct 14, 2018

Conversation

u2606
Copy link
Contributor

@u2606 u2606 commented Oct 9, 2018

Swift 4.2 renames NSAttributedStringKey to NSAttributedString.Key and NSUnderlineStyle cases like .styleSingle to .single. This PR uses #if swift(>4.2) checks to simultaneously support both Swift 4.2 and lower versions.

Swift 4.2 renames `NSAttributedStringKey` to `NSAttributedString.Key`
and `NSUnderlineStyle` cases like `.styleSingle` to `.single`. This
commit uses `#if swift(>4.2)` checks to simultaneously support both
Swift 4.2 and lower versions.
@kazuhiro4949
Copy link
Owner

Thanks!

@kazuhiro4949 kazuhiro4949 merged commit 5d7ccac into kazuhiro4949:master Oct 14, 2018
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.

None yet

2 participants