wonderland by ibenzani

Swift uses the first option, the resulting sequence will have a length equal to the shorter of the two inputs.

Creates a sequence of pairs built out of two underlying sequences.

func zip<Sequence1, Sequence2>(_ sequence1: Sequence1,_ sequence2: Sequence2 ) -> Zip2Sequence<Sequence1, Sequence2> where Sequence1 : Sequence, Sequence2 : Sequence

Returna a sequence of tuple pairs, where the elements of each pair are corresponding elements of sequence1 and sequence2.


let words = ["one", "two", "three", "four"]
let numbers = [1, 2, 3]
let zippedArray = zip(words, numbers)
//prints Count:3
//zippedArray --> [("one",1),("two",2),("three",3)]



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?)



It solves the confusion between Factory methods and initializers.

We can’t create an failable and non failable initializers with the same name and parameter.

Initializers normally don’t return a value but we can add a fail state by returning nil.

if let myButton = MyButton(buttonType: .default) {
// init the button successfully
} else {
// could not init the button

Enumeration with raw values have failable init by default.

enum ButtonTypes: Int {
case default
case primary
case secondary
case informative
let buttonType = ButtonTypes(rawValue: 2)

We can override failable init of superclass. In fact we can override failable init into non failable init.



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 model. We download a model from the link below:


We then have to convert it to mlmodelc type to add Xamarin project. We can use Xcode or terminal for this. We should right click on folder that include our CoreML model and then select New Terminal at Folder. After that write tihs command in terminal;

xcrun coremlcompiler compile MyModel.mlmodel MyModel.mlmodelc

this gives us the output of .mlmodelc which we can use in our project. Once we add this model to our project, we can start to develop.



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) =>

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”, Alias = “fa-solid”)]

3. Create a resource in App.xaml

<Application.Resources><x:String x:Key="IconCheck">&#xf00c;</x:String></Application.Resources>

4.Create a button in Page.xaml