To run the example project, clone the repo, and run pod install
from the Example directory first.
With this library you can to create simply NSAttributedStrings by chaining strings with parameters. Just look down.
// Create new mutable string.
NSMutableAttributedString *mutableString = [NSMutableAttributedString dgs_makeString:^(DGSAttributedStringMaker *add)
{
add.string(@"Hello ").with.
color([UIColor redColor]).
strikedThroughWithStyle(NSUnderlineStyleDouble);
add.string(@"bro! \n\n").
underlinedWithStyle(NSUnderlineStyleSingle);
add.string(@"Do you like this style of creation attributed strings?\n\n").
letterpressed(YES);
}];
iOS started from 7.0 version.
DGSAttributedStringSuite is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DGSAttributedStringSuite"
Vadim Smirnov, va.smirnov@2gis.ru
DGSAttributedStringSuite is available under the MIT license. See the LICENSE file for more info.