Skip to content

DGSAttributedStringSuite is a helper for easy creating NSAttributedStrings.

License

Notifications You must be signed in to change notification settings

vadimsmirnovnsk/DGSAttributedStringSuite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DGSAttributedStringSuite

CI Status Version License Platform

Usage

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);
	}];

Requirements

iOS started from 7.0 version.

Installation

DGSAttributedStringSuite is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "DGSAttributedStringSuite"

Author

Vadim Smirnov, va.smirnov@2gis.ru

License

DGSAttributedStringSuite is available under the MIT license. See the LICENSE file for more info.

About

DGSAttributedStringSuite is a helper for easy creating NSAttributedStrings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published