Swiftpack.co - muukii/NextGrowingTextView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
๐Ÿ“ The next in the generations of 'growing textviews' optimized for iOS 8 and above.
.package(url: "https://github.com/muukii/NextGrowingTextView.git", from: "1.6.1")


Version Carthage compatible License Platform FOSSA Status

The next in the generations of 'growing textviews' optimized for iOS 8 and above.


As a successor to HPGrowingTextView, NextGrowingTextView was redesigned from scratch to provide the most elegant architecture for iOS 8 and above.

Most autoresizing textviews are implemented with UITextView subclasses. The problem with that approach is that each iOS version changed UITextView's layout behavior, and so most of the implementations are laden with iOS version-specific workarounds to fix bugs and errant behavior. With NextGrowingTextView, the battle with the framework is now over.

NextGrowingTextView approaches the problem differently by wrapping UITextView within a UIScrollView and aligning the textView to the scrollView's contentSize.

- public NextGrowingTextView: UIScrollView
    - internal NextGrowingInternalTextView: UITextView

You want also to need to display a user-interface on top of the keyboard?
muukii/Bureau enables you to show your user-interface on top of the keyboard in the easiest way.


To run the example project, clone the repo, and run pod install from the Example directory first.


public class Delegates {
  public var willChangeHeight: (CGFloat) -> Void
  public var didChangeHeight: (CGFloat) -> Void

public var delegates: Delegates
public override init(frame: CGRect)

Use isFlashScrollIndicatorsEnabled to enable/disable flash scroll indicators while text view height is less than max height.


let growingTextView: NextGrowingTextView

growingTextView.delegates.didChangeHeight = { [weak self] height in
  guard let `self` = self else { return }
  // Do something


iOS 9.0+ Swift 4.2+



CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 0.39.0+ is required to build NextGrowingTextView

To integrate NextGrowingTextView into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

pod 'NextGrowingTextView'

Then, run the following command:

$ pod install


Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate NextGrowingTextView into your Xcode project using Carthage, specify it in your Cartfile:

github "muukii/NextGrowingTextView"

Run carthage update to build the framework and drag the built NextGrowingTextView.framework into your Xcode project.


muukii, m@muukii.me


NextGrowingTextView is available under the MIT license. See the LICENSE file for more info.

FOSSA Status


Stars: 1511
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jackโ€™d and SCRUFF. We are two of the worldโ€™s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

Use UILabel to display placeholder
1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics