--

--

by Pixpedia

Initializers might work or might not. For the case of not working, we can return nil.

We write a failable initializer by placing a question mark after the init keyword (init?)

init?()

init!()

It solves the confusion between Factory methods and initializers.

We can’t create an failable and non failable…

--

--

Fields of Blue by Exphrasis

CoreML allows us to develop a Machine Learning project on iOS. Applications developed using CoreML can perform all kinds of tasks such as problem solving, image recognition using trained models.

We can do this with Xamarin.iOS. The first thing you have to do for this is to set ourselves a…

--

--

Underground Cavern by laspinter

We can use MessagingCenter for this. In your first page, subscribe a message:

public FirstPage()
{
MessagingCenter.Subscribe<SecondPage>(this, "StartProgress", (sender) =>
{
StartProgress();
});
}

public void StartProgress()
{
//do progression here
//and set Progress bar
}

In second page send the message:

private void Onpress(s, e)
{
MessagingCenter.Send(this, "StartProgress")…

--

--

by TsaoShin

We can create a simple round buttton with font icon in Xamarin.Forms application like below:

  1. Add font family to your shared app as an EmbeddedResource
  2. Register the font file with the assembly, in a file such as AssemblyInfo.cs, using the ExportFont attribute.
using Xamarin.Forms;using Xamarin.Forms.Xaml;[assembly: XamlCompilation(XamlCompilationOptions.Compile)][assembly: ExportFont(“fa-solid-900.ttf”…

--

--