Skip to content

Commit

Permalink
Merge pull request #36 from iv-mexx/feature/frameworkSupport
Browse files Browse the repository at this point in the history
Add Framework (Carthage) Support
  • Loading branch information
glaszig committed May 7, 2015
2 parents 389eb57 + 5941161 commit e1241cf
Show file tree
Hide file tree
Showing 5 changed files with 579 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Classes/SZTextView.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@

#import <UIKit/UIKit.h>

//! Project version number for SZTextView.
FOUNDATION_EXPORT double SZTextViewVersionNumber;

//! Project version string for SZTextView.
FOUNDATION_EXPORT const unsigned char SZTextViewVersionString[];


IB_DESIGNABLE

@interface SZTextView : UITextView
Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://travis-ci.org/glaszig/SZTextView.svg?branch=master)](https://travis-ci.org/glaszig/SZTextView)
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/glaszig/sztextview/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)

A drop-in UITextView replacement which gives you: a placeholder.
Technically it differs from other solutions in that it tries to work like UITextField's private `_placeholderLabel` so you should not suffer ugly glitches like jumping text views or loads of custom drawing code.
Expand All @@ -15,7 +16,23 @@ Your iOS project. (Tested on iOS versions 7.x, 8.0. Should also work on 5.x and
## Installation

Either clone this repo and add the project to your Xcode workspace or use [CocoaPods](http://cocoapods.org).
Either clone this repo and add the project to your Xcode workspace, use [CocoaPods](http://cocoapods.org) or [Carthage](https://github.com/Carthage/Carthage).

#### CocoaPods

Add this to you Podfile:

```ruby
pod 'SZTextView'
```

#### Carthage

Add this line to your Cartfile:

```
github "glaszig/SZTextView"
```

## Usage

Expand Down
Loading

0 comments on commit e1241cf

Please sign in to comment.