TestsTested | ✗ |
LangLanguage | CC |
License | Apache 2 |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
Bypass is a markdown library that can directly render markdown as stylized text
in a UIView
. It features nicely styled text, tappable links, and a smooth
crossfade between representations for different device orientations.
There is also an Android version of this library, that shares the same core.
Bypass requires iOS version 6.0 or greater.
Choose from either CocoaPods inclusion or git submodule inclusion for integrating Bypass into your project.
You can find a sample project that integrates Bypass using Git submodules here.
Libraries
, issue the command git submodule add [email protected]:Uncodin/bypass-ios.git Libraries/Bypass
git submodule update --init --recursive
Libraries/Bypass/Bypass.xcodeproj
into your project by dropping it into the Project Navigator-ObjC
to Other Linker Flags
Bypass
as a target dependencyQuartzCore.framework
, CoreText.framework
, and libBypass.a
to the list of libraries to link against.Bypass is very easy to use. An example usage follows:
CGRect markdownRect = CGRectMake(0.f, 0.f, 100.f, 100.f);
BPMarkdownView *markdownView = [[BPMarkdownView alloc] initWithFrame:markdownRect];
NSString *markdown = @"# Hello, world!"
""
"This is my text body. There are many like it, "
"but this one is mine.";
[markdownView setMarkdown:markdown];
[[self view] addSubview:markdownView];
Feel free to directly embed a BPMarkdownView
in a Nib or Storyboard, but
ensure that you have configured your Other Linker Flags to contain -ObjC
if you do this.