Skip to content

Commit

Permalink
Reenable ViewTransform unit tests for iOS (#13642)
Browse files Browse the repository at this point in the history
* Update HandlerTestBaseOfT.Tests.cs

* Update CoreAnimationExtensions.cs
  • Loading branch information
jfversluis authored Mar 29, 2023
1 parent 08b57ee commit 6bba4b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions src/Core/src/Platform/iOS/CoreAnimationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ internal static Matrix4x4 GetViewTransform(this CALayer layer)
if (layer == null)
return new Matrix4x4();

var superLayer = layer.SuperLayer;
if (layer.Transform.IsIdentity && superLayer == null)
return new Matrix4x4();

var superTransform = layer.SuperLayer?.GetChildTransform() ?? CATransform3D.Identity;

return layer.GetLocalTransform()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,7 @@ protected void AssertWithinTolerance(Graphics.Size expected, Graphics.Size actua
AssertWithinTolerance(expected.Width, actual.Width, tolerance, "Width was not within tolerance.");
}

[Theory(DisplayName = "Native View Transforms are not empty"
#if IOS
, Skip = "https://github.com/dotnet/maui/issues/3600"
#endif
)]
[Theory(DisplayName = "PlatformView Transforms are not empty")]
[InlineData(1)]
[InlineData(100)]
[InlineData(1000)]
Expand Down

0 comments on commit 6bba4b2

Please sign in to comment.