From 88ad76dafba431765ebb0ae69f2a69d58b8877a2 Mon Sep 17 00:00:00 2001 From: Derek Goss Date: Thu, 29 Jan 2015 21:13:39 -0500 Subject: [PATCH] Updated Installation section of README.md Fixes issue #150. Adds instructions for installing with CocoaPods and static files, as well as some tips for importing with Objc and Swift. --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e305a8a..324607e 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,15 @@ SwipeView is derived from UIView and - as with all UIKit components - it should Installation -------------- +To use the SwipeView class in an app, use one of the two methods below. -To use the SwipeView class in an app, just drag the SwipeView class files (demo files and assets are not needed) into your project. +For both methods, be sure to `#import ` (ObjC) or `import SwipeView` (Swift) wherever you need it. Alternatively, when using Swift you can add `#import ` to your Bridging Header. +#####CocoaPods +Add this line to your podfile: `pod 'SwipeView'` + +#####Static Files +Just drag the SwipeView class files (demo files and assets are not needed) into your project. Properties -------------- @@ -387,4 +393,4 @@ Version 1.0 Version 0.9 -- Prerelease version. \ No newline at end of file +- Prerelease version.