forked from dotnet/maui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix border lagging and unwanted animations on iOS (dotnet#24360)
* Fix border lagging and unwanted animations on iOS * Update src/Core/src/Platform/iOS/StrokeExtensions.cs Co-authored-by: MartyIX <[email protected]> * Add some control on the test case * Ensure every CALayer used by MAUI does not use animations. --------- Co-authored-by: MartyIX <[email protected]>
- Loading branch information
1 parent
336f7f4
commit 2c7458e
Showing
18 changed files
with
148 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using CoreAnimation; | ||
|
||
namespace Microsoft.Maui.Platform; | ||
|
||
class StaticCAGradientLayer : CAGradientLayer | ||
{ | ||
public override void AddAnimation(CAAnimation animation, string? key) | ||
{ | ||
// Do nothing, we don't want animations here | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using CoreAnimation; | ||
|
||
namespace Microsoft.Maui.Platform; | ||
|
||
class StaticCALayer : CALayer | ||
{ | ||
public override void AddAnimation(CAAnimation animation, string? key) | ||
{ | ||
// Do nothing, we don't want animations here | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using CoreAnimation; | ||
|
||
namespace Microsoft.Maui.Platform; | ||
|
||
class StaticCAShapeLayer : CAShapeLayer | ||
{ | ||
public override void AddAnimation(CAAnimation animation, string? key) | ||
{ | ||
// Do nothing, we don't want animations here | ||
} | ||
} |
Oops, something went wrong.