@applicaster/quick-brick-native-apple 6.14.2 → 6.14.3

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "QuickBrickApple",
3
- "version": "6.14.2",
3
+ "version": "6.14.3",
4
4
  "platforms": {
5
5
  "ios": "16.0",
6
6
  "tvos": "16.0"
@@ -16,7 +16,7 @@
16
16
  "authors": "Applicaster LTD.",
17
17
  "source": {
18
18
  "git": "https://github.com/applicaster/Zapp-Frameworks.git",
19
- "tag": "@@applicaster/quick-brick-native-apple/6.14.2"
19
+ "tag": "@@applicaster/quick-brick-native-apple/6.14.3"
20
20
  },
21
21
  "requires_arc": true,
22
22
  "source_files": "universal/**/*.{m,swift}",
@@ -253,49 +253,9 @@ public class FocusableGroupView: RCTTVView {
253
253
  isFocusDisabled == false
254
254
  }
255
255
 
256
- // This was added because on fast scroll preferred focus was not called,
257
- // that cause to select wrong item. On future must be removed if resolved
258
- private func needsFocusUpdateDueToWrongFocus(context: UIFocusUpdateContext,
259
- with coordinator: UIFocusAnimationCoordinator) -> Bool {
260
- guard
261
- let preferredFocusedItem = preferredFocusEnvironments.first as? FocusableView,
262
- let nextFocusedItem = context.nextFocusedItem as? FocusableView,
263
- let previouslyFocusedItem = context.previouslyFocusedItem as? FocusableView else { return false }
264
-
265
- let previousFocusedItemNotFromSameGroup = previouslyFocusedItem.groupId != nextFocusedItem.groupId
266
- let nextFocusedBelongsToCurrentGroup = nextFocusedItem.groupId == itemId
267
- let nextFocusItemNotPreferredFocusedItem = nextFocusedItem.itemId != preferredFocusedItem.itemId
268
-
269
- guard previousFocusedItemNotFromSameGroup,
270
- nextFocusedBelongsToCurrentGroup,
271
- nextFocusItemNotPreferredFocusedItem else {
272
- return false
273
- }
274
-
275
- coordinator.addCoordinatedAnimations({
276
- let duration: TimeInterval = UIView.inheritedAnimationDuration
277
- UIView.animate(withDuration: duration,
278
- delay: 0.0,
279
- options: [],
280
- animations: {
281
- self.setNeedsFocusUpdate()
282
- DispatchQueue.main.async {
283
- self.updateFocusIfNeeded()
284
- }
285
- }, completion: nil)
286
- }, completion: nil)
287
-
288
- return true
289
- }
290
-
291
- override public func didUpdateFocus(in context: UIFocusUpdateContext, with coordinator: UIFocusAnimationCoordinator) {
256
+ override public func didUpdateFocus(in context: UIFocusUpdateContext, with _: UIFocusAnimationCoordinator) {
292
257
  guard isFocusDisabled == false else { return }
293
258
 
294
- guard needsFocusUpdateDueToWrongFocus(context: context,
295
- with: coordinator) == false else {
296
- return
297
- }
298
-
299
259
  if isPreferredFocusDisabled == false {
300
260
  updatePreferredFocusView(nextFocusItem: context.nextFocusedItem)
301
261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/quick-brick-native-apple",
3
- "version": "6.14.2",
3
+ "version": "6.14.3",
4
4
  "description": "iOS and tvOS native code for QuickBrick applications. This package is used to provide native logic for QuickBrick",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"