Skip to content

Commit 0797704

Browse files
committed
fix obsolescence warnings
1 parent 858fb88 commit 0797704

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Maui.Tabs/Platforms/iOS/TintableImageEffect.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private void UpdateColor()
8888
private async Task DelayedPost(int milliseconds, Action action)
8989
{
9090
await Task.Delay(milliseconds);
91-
Device.BeginInvokeOnMainThread(action);
91+
MainThread.BeginInvokeOnMainThread(action);
9292
}
9393
}
9494
}

Maui.Tabs/Platforms/iOS/TouchEffectPlatform.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.ComponentModel;
2-
using Microsoft.Maui.Controls.Compatibility.Platform.iOS;
32
using Microsoft.Maui.Controls.Platform;
3+
using Microsoft.Maui.Platform;
44
using ObjCRuntime;
55
using Sharpnado.Tabs.Effects.iOS.GestureCollectors;
66
using Sharpnado.Tabs.Effects.iOS.GestureRecognizers;
@@ -80,7 +80,7 @@ void UpdateEffectColor() {
8080

8181
InternalLogger.Debug($"UpdateEffectColor");
8282
_alpha = color.Alpha < 1.0 ? 1 : (float)0.3;
83-
_layer.BackgroundColor = color.ToUIColor();
83+
_layer.BackgroundColor = color.ToPlatform();
8484
}
8585

8686
void BringLayer() {

0 commit comments

Comments
 (0)