Skip to content

Commit

Permalink
fix: ci for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Nov 15, 2024
1 parent 439c11a commit d1ca282
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#if __IOS__
using UIKit;
#elif __MACOS__
using AppKit;
#endif

namespace Uno.UI.RuntimeTests.Tests.Microsoft_UI_Xaml_Controls;
Expand Down Expand Up @@ -182,8 +184,8 @@ public async Task When_Items_Should_ShowHeader()
var closeButton1 = (Button)tabviewItem1.GetTemplateChild("CloseButton");

var buttonLabel1 =
#if __IOS__
closeButton1.FindFirstChild<ImplicitTextBlock>();
#if __IOS__ || __MACOS__
closeButton1.FindFirstChild<ImplicitTextBlock>();
#else
((ContentPresenter)closeButton1.GetTemplateChild("ContentPresenter")).FindFirstChild<ImplicitTextBlock>();
#endif
Expand Down

0 comments on commit d1ca282

Please sign in to comment.