DntlBoldify 0.1.4

DntlBoldify 0.1.4

Aleksandr Budaiev 维护。




  • Aleksandr Budaiev

DntlBoldify

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后从示例目录运行 pod install

AttributesTheme * theme = AttributesTheme.defaultTheme;

NSAttributedString * aText = [[NSAttributedString alloc] initWithString:NSLocalizedString(@"1 paragraph", @"some text")];

NSAttributedString *aaText = [aText transformWithMultipleTags: @[@"",@"",@"",@""] primaryAttributes: theme.primary tagAttributes: @[theme.bold, theme.italic, theme.underlined, theme.highlighted]];

系统要求

安装

NSAttributesString 的分类。应用于标记文本的所需属性。在有不同属性的 Localizable.strings 的情况下很有用。方便于其他目标中使用相同文本。

DntlBoldify 通过 CocoaPods 提供使用。要安装它,只需将以下行添加到您的 Podfile 中:

pod 'DntlBoldify'

作者

布达耶夫,[email protected]

许可证

DntlBoldify可在MIT许可证下使用。有关更多信息,请参阅LICENSE文件。