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

Swift Compatibility: NSString * to NSAttributedStringKey * #71

Open
elmodos opened this issue Jul 16, 2018 · 0 comments
Open

Swift Compatibility: NSString * to NSAttributedStringKey * #71

elmodos opened this issue Jul 16, 2018 · 0 comments

Comments

@elmodos
Copy link

elmodos commented Jul 16, 2018

As of swift and objc NSAttributedStringKey differences, there it is typedef of NSString for Obj-C and struct not subclassed from String in swift.

Just declaring explicitly required type will allow to use it in swift wihtout issues.

@property (nonatomic, strong, nullable) NSDictionary<NSString *, id> *defaultAttributes;
@property (nonatomic, strong, nullable) NSDictionary<NSAttributedStringKey *, id> *defaultAttributes;
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

No branches or pull requests

1 participant