Skip to content

Swift Compatibility: NSString * to NSAttributedStringKey * #71

@elmodos

Description

@elmodos

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions