Skip to content

Commit

Permalink
fix obsolescence warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
janusw committed Oct 12, 2024
1 parent 858fb88 commit 0797704
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Maui.Tabs/Platforms/iOS/TintableImageEffect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private void UpdateColor()
private async Task DelayedPost(int milliseconds, Action action)
{
await Task.Delay(milliseconds);
Device.BeginInvokeOnMainThread(action);
MainThread.BeginInvokeOnMainThread(action);
}
}
}
4 changes: 2 additions & 2 deletions Maui.Tabs/Platforms/iOS/TouchEffectPlatform.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel;
using Microsoft.Maui.Controls.Compatibility.Platform.iOS;
using Microsoft.Maui.Controls.Platform;
using Microsoft.Maui.Platform;
using ObjCRuntime;
using Sharpnado.Tabs.Effects.iOS.GestureCollectors;
using Sharpnado.Tabs.Effects.iOS.GestureRecognizers;
Expand Down Expand Up @@ -80,7 +80,7 @@ void UpdateEffectColor() {

InternalLogger.Debug($"UpdateEffectColor");
_alpha = color.Alpha < 1.0 ? 1 : (float)0.3;
_layer.BackgroundColor = color.ToUIColor();
_layer.BackgroundColor = color.ToPlatform();
}

void BringLayer() {
Expand Down

0 comments on commit 0797704

Please sign in to comment.