Skip to content

Commit

Permalink
FIX: NSLayoutConstraint weak reference warning.
Browse files Browse the repository at this point in the history
FIX: podspec issue #40
  • Loading branch information
KennethTsang committed Sep 25, 2018
1 parent e43c010 commit a5b8859
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Example/GrowingTextView.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0930;
LastUpgradeCheck = 1000;
ORGANIZATIONNAME = CocoaPods;
TargetAttributes = {
607FACCF1AFB9204008FA782 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0930"
LastUpgradeVersion = "1000"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Example/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion GrowingTextView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "GrowingTextView"
s.version = "0.6.0"
s.version = "0.6.1"
s.summary = "UITextView on Swift 3 and Swift 4. Support auto growing, placeholder and length limit."

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/GrowingTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ open class GrowingTextView: UITextView {
override open var text: String! {
didSet { setNeedsDisplay() }
}
private weak var heightConstraint: NSLayoutConstraint?
private var heightConstraint: NSLayoutConstraint?

// Maximum length of text. 0 means no limit.
@IBInspectable open var maxLength: Int = 0
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![Platform](https://img.shields.io/cocoapods/p/GrowingTextView.svg?style=flat)](http://cocoapods.org/pods/GrowingTextView)
[![Language](https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat)](http://cocoapods.org/pods/GrowingTextView)
[![Language](https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat)](http://cocoapods.org/pods/GrowingTextView)
[![Language](https://img.shields.io/badge/Swift-4.2-orange.svg?style=flat)](http://cocoapods.org/pods/GrowingTextView)

<img src="DEMO.gif" border=1 style="border-color:#eeeeee">

Expand All @@ -22,7 +23,7 @@ it, simply add the following line to your Podfile:
Swift 4.2<br>

```ruby
pod 'GrowingTextView', '~> 0.6'
pod 'GrowingTextView', '0.6.1'
```

Swift 4.1<br>
Expand Down

0 comments on commit a5b8859

Please sign in to comment.