aix 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -480,7 +480,7 @@ class HybridAix: HybridAixSpec, AixContext, KeyboardNotificationsDelegate {
480
480
  /// Centralized function to check and fire onScrolledNearEndChange callback
481
481
  /// Called from KVO observers and after content inset changes
482
482
  private func updateScrolledNearEndState() {
483
- guard scrollView != nil else { return }
483
+ guard didScrollToEndInitially, scrollView != nil else { return }
484
484
  let isNearEnd = getIsScrolledNearEnd(distFromEnd: distFromEnd)
485
485
  guard isNearEnd != prevIsScrolledNearEnd else { return }
486
486
  prevIsScrolledNearEnd = isNearEnd
@@ -730,7 +730,7 @@ class HybridAix: HybridAixSpec, AixContext, KeyboardNotificationsDelegate {
730
730
  applyContentInset()
731
731
  applyScrollIndicatorInsets()
732
732
  scrollToEndInternal(animated: false)
733
- updateScrolledNearEndState()
733
+ prevIsScrolledNearEnd = getIsScrolledNearEnd(distFromEnd: distFromEnd)
734
734
  }
735
735
  didScrollToEndInitially = true
736
736
  } else {
@@ -121,7 +121,10 @@ class HybridAixComposer: HybridAixComposerSpec {
121
121
  let currentHeight = view.bounds.height
122
122
  if currentHeight != lastReportedHeight {
123
123
  lastReportedHeight = currentHeight
124
- getAixContext()?.reportComposerHeightChange(height: currentHeight)
124
+ if let ctx = cachedAixContext {
125
+ ctx.reportComposerHeightChange(height: currentHeight)
126
+ applyKeyboardTransform(height: ctx.keyboardHeight, heightWhenOpen: ctx.keyboardHeightWhenOpen, animated: false)
127
+ }
125
128
  }
126
129
  }
127
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aix",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "author": "Fernando Rojo",
5
5
  "repository": {
6
6
  "type": "git",