Comments (6)
I need textViewDidChange delegate method, how to use in updated version?
let growingTextView: NextGrowingTextView
growingTextView.delegates.textViewDidChange = { (growingTextView: NextGrowingTextView) in
// Do something
}
from nextgrowingtextview.
delegates.textViewDidChange
was deprecated.
You can now use UITextViewDelegate from NextGrowingTextView.textView.delegate
from nextgrowingtextview.
Hi muukii,
Thanks for your reply
UITextViewDelegate from NextGrowingTextView.textView.delegate
can you explain through it with example
Thanks
from nextgrowingtextview.
okay,
It may works.
class ViewController: UIViewController {
let nextTextView: NextGrowingTextView = ...
override func viewDidLoad() {
super.viewDidLoad()
nextTextView.textView.delegate = self
}
}
extension ViewController: UITextViewDelegate {
func textViewDidChange(_ textView: UITextView) {
// here π€
}
}
from nextgrowingtextview.
Hi muukii,
Thanks it's working now..
from nextgrowingtextview.
Hi
Niceπ
from nextgrowingtextview.
Related Issues (20)
- minHeight HOT 3
- Placeholder missing after updating to most recent version? HOT 4
- NextGrowingTextView integrattion in project without pod or carthage
- XCode 10 GM and Swift 4.2 fail to build HOT 3
- Swift Compiler Error: Type 'UITextView' has no member 'textDidChangeNotification' HOT 4
- Placeholder not vertically centered
- How to set NextGrowingTextView display minisize
- How to increase number of lines? (up-to 5 lines)
- Use of undeclared type 'NextGrowingInternalTextView'
- Feature request: SPM support
- Update to Swift 4
- How to use UItextfield delegates beginEditing and end Editing?
- The project don`t run on the device or the simulator
- Can you remove padding on placeholder label?
- Placeholder get shrink
- Storyboard support HOT 2
- Bug founded when reaching max line
- Will there be loopholes?
- Latest release 2.2.1 unavailable on cocoapods
- How to handle willChangeHeight HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextgrowingtextview.