Skip to content

Commit

Permalink
Fix issue where repeater layer could be displayed incorrectly (airbnb…
Browse files Browse the repository at this point in the history
  • Loading branch information
calda committed Jan 8, 2024
1 parent 9dc7d74 commit 4f4b5a1
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/Private/CoreAnimation/Layers/ShapeLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ extension CALayer {
try setUpRepeater(
repeater,
items: repeaterGrouping.grouping,
parentGroup: parentGroup,
parentGroupPath: parentGroupPath,
context: context)
}
Expand Down Expand Up @@ -222,7 +221,6 @@ extension CALayer {
private func setUpRepeater(
_ repeater: Repeater,
items allItems: [ShapeItemLayer.Item],
parentGroup: Group?,
parentGroupPath: [String],
context: LayerContext)
throws
Expand All @@ -233,7 +231,7 @@ extension CALayer {
for index in 0..<copyCount {
let groupLayers = try makeGroupLayers(
from: items,
parentGroup: parentGroup,
parentGroup: nil, // The repeater layer acts as the parent of its sublayers
parentGroupPath: parentGroupPath,
context: context)

Expand Down
1 change: 1 addition & 0 deletions Tests/Samples/Issues/issue_2270.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Supports Core Animation engine
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4f4b5a1

Please sign in to comment.