PM-3350 Removed workaround for iOS issue with Avatar icon as it's now fixed in latest .Net8 release.

This commit is contained in:
Dinis Vieira 2023-11-14 23:24:10 +00:00
parent beda4e9ff8
commit f02b3415a3
No known key found for this signature in database
GPG key ID: 9389160FF6C295F3

View file

@ -79,14 +79,6 @@ namespace Bit.App.Controls
var textColor = CoreHelpers.TextColorFromBgColor(bgColor); var textColor = CoreHelpers.TextColorFromBgColor(bgColor);
var size = 50; var size = 50;
//Workaround: [MAUI-Migration] There is currently a bug in MAUI where the actual size of the image is used instead of the size it should occupy in the Toolbar.
//This causes some issues with the position of the icon. As a workaround we make the icon smaller until this is fixed.
//Github issues: https://github.com/dotnet/maui/issues/12359 and https://github.com/dotnet/maui/pull/17120
if (DeviceInfo.Platform == DevicePlatform.iOS)
{
size = 20;
}
using (var bitmap = new SKBitmap(size * 2, using (var bitmap = new SKBitmap(size * 2,
size * 2, size * 2,
SKImageInfo.PlatformColorType, SKImageInfo.PlatformColorType,