You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`growingTextViewShouldReturn(_:)`| Return key tapped — return `true` to resign first responder |
135
135
|`userDidPaste(images:)`| User pasted images from the pasteboard |
136
136
137
+
## Migrating from HPGrowingTextView
138
+
139
+
ARGrowingTextView preserves the same architectural approach (a `UIView` wrapping an internal `UITextView`) and keeps familiar API names, so migration is mostly mechanical.
| All `growingTextView…` delegate methods | Same names, Swift syntax |
152
+
153
+
### What changed
154
+
155
+
| Change | Details |
156
+
|---|---|
157
+
|**Language**| Objective-C → Swift 5.10+ |
158
+
|**Min deployment**| iOS 4+ → iOS 13+ |
159
+
|**Installation**| CocoaPods → Swift Package Manager |
160
+
|**Layout**| Frame-based → Auto Layout (add as subview and pin with constraints) |
161
+
|**Height animation callback**|`willChangeHeight:` was called *inside* the animation block. Now use `changeHeightWith:animationContext:` and call `animationContext.animate { … }` to synchronize your layout changes. |
0 commit comments