Hello,
Welcome to Microsoft Q&A!
If the image is from local , you can set it directly in Forms project .
//xaml of tabbedPage
<ContentPage Title="Tab 1" IconImageSource="item1.png"/>
<ContentPage Title="Tab 2" IconImageSource="item2.png"/>
---
If the image comes from internet , you need to override the icon in custom renderer, try the following code .
[assembly: ExportRenderer(typeof(TabbedPage), typeof(MyRenderer))]
namespace FormsApp.iOS
{
class MyRenderer : TabbedRenderer
{
public override void ViewDidLayoutSubviews()
{
base.ViewDidLayoutSubviews();
UITabBarItem[] items = this.TabBar.Items;
var item1 = items[0];
item1.Image = UIImage.LoadFromData(NSData.FromUrl(NSUrl.FromString("url1")));
var item2 = items[1];
item2.Image = UIImage.LoadFromData(NSData.FromUrl(NSUrl.FromString("url2")));
}
}
}
Thank you.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.