Skip to content

Commit

Permalink
Prepare Cocoapods
Browse files Browse the repository at this point in the history
  • Loading branch information
inkyfox committed Oct 19, 2016
1 parent 001de74 commit 8531ab8
Show file tree
Hide file tree
Showing 14 changed files with 230 additions and 386 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ playground.xcworkspace
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts
Carthage/Checkouts

Carthage/Build

Expand Down
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.3
60 changes: 60 additions & 0 deletions KRWordWrapLabel.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
Pod::Spec.new do |s|
s.name = "KRWordWrapLabel"
s.version = "1.0.0"
s.summary = "UILabel subclass which provides **Word Wrap** based on white spaces not depending on languages"
s.description = <<-DESC
# KRWordWrapLabel
![Swift](https://img.shields.io/badge/Swift-2.3-orange.svg)
``UILabel`` subclass which provides **Word Wrap** based on white spaces not depending on languages
Although UILabel supports *Word Wrap* for the line breaking mode, it doesn't work on Korean letters. It works just like *Charactor Wrap*. This KRWordWrapLabel provides **Word Wrap** based on white spaces not depending on languages. Almost all the requirements for this library is from Korean, so I'll describe the details in Korean also.
UILabel은 Word Wrap 모드를 지원하지만 한글의 경우 글자 단위로 줄바꿈이 됩니다. 이 KRWordWrapLabel은 UILabel의 Subclass로서 한글의 단어 단위의 줄바꿈이 가능합니다.
### Usages
* Use same as ``UILabel``. Can be previewd in Interface builder by ``IBDesignable``
* Works only on ``Word Wrap`` option of ``Line Break Mode``. Otherwise, works same as UILabel
* ``IBInspectable`` properties: ``ellipsis`` string and ``lineSpace``
* If a view's width is narrower than the widest width of word in the text, works same as UILabel
* 기존의 ``UILabel``과 같이 사용가능합니다. ``IBDesignable``을 적용하여 Interface Builder에서도 preview가 가능합니다.
* ``Line Break Mode``가 ``Word Wrap``일때만 동작하며 다른 모드에선 ``UILabel``의 기본 동작으로 보여집니다.
* numberOfLines에 의해 마지막 행이 잘릴 때의 표시 문자열인 ``ellipsis``와 줄 간격인 ``lineSpace``를 ``IBInspectable``로 추가하였습니다.
* 뷰의 폭이 공백없는 제일 긴 문자열의 폭보다 짧은 경우 전체가 ``UILabel``의 기본 동작으로 문자 단위로 줄바꿈됩니다.
### ScreenShot
![sreenshot](https://github.com/inkyfox/KRWordWrapLabel/blob/master/screenshot/KRWordWrapLabel.gif)
## Installation
### CocoaPods
```Ruby
pod 'KRWordWrapLabel'
```
## Requirements
- Swift 2.3
## Author
Yongha Yoo, [email protected]
## License
MIT
DESC
s.homepage = "https://github.com/inkyfox/KRWordWrapLabel"
s.license = 'MIT'
s.author = { "Yongha Yoo" => "[email protected]" }
s.source = { :git => "https://github.com/inkyfox/KRWordWrapLabel.git", :tag => s.version.to_s }

s.requires_arc = true

s.ios.deployment_target = '8.0'

s.source_files = 'Sources/KRWordWrapLabel.swift'

end
10 changes: 0 additions & 10 deletions KRWordWrapLabel.xcworkspace/contents.xcworkspacedata

This file was deleted.

26 changes: 0 additions & 26 deletions KRWordWrapLabel/Info.plist

This file was deleted.

19 changes: 0 additions & 19 deletions KRWordWrapLabel/KRWordWrapLabel.h

This file was deleted.

Loading

0 comments on commit 8531ab8

Please sign in to comment.