Open in app

Sign In

Write

Sign In

Tuğçe Arar
Tuğçe Arar

242 Followers

Home

About

Nov 13, 2022

Swift Tips: Zip different sized arrays

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.

Swift

1 min read

Swift Tips: Zip different sized arrays
Swift Tips: Zip different sized arrays
Swift

1 min read


Nov 3, 2022

iOS Tips: Perform Hit Test on a View

Hit test helps us to understand if a view can be interactive with user. func hitTest(_ point: CGPoint,with event: UIEvent? ) -> UIView? When the touch event is performed by the user, the system calls this function to trigger the touch or gesture recognizer an returns the frontmost view interacted…

IOS

1 min read

iOS Tips: Perform Hit Test on a View
iOS Tips: Perform Hit Test on a View
IOS

1 min read


Nov 3, 2022

iOS Tips: Data Persistence

In this article, I would like to talk about ways of persisting data in iOS apps. Persistence in computer science is defined as ‘the characteristic of state that outlives the process that created it’. Data persistence means storing any type of data on disk so that the same data can…

Swift

2 min read

iOS Tips: Data Persistence
iOS Tips: Data Persistence
Swift

2 min read


Nov 3, 2022

Swift Tips: Failable init

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 initializers with the same name and parameter. Initializers normally don’t return a value but we can add a fail state by returning nil.

Swift

1 min read

Swift Tips: Failable init
Swift Tips: Failable init
Swift

1 min read


Nov 24, 2021

Dynamically Change the iOS App Icon in Xamarin.Forms

In iOS 10.3, Apple added a function that allows us to dynamically change the icon of our application. The Apple documentation states that: supportsAlternateIcons — It is readonly. A Boolean value indicating whether the app is allowed to change its icon. …

IOS

2 min read

Dynamically Change the iOS App Icon in Xamarin.Forms
Dynamically Change the iOS App Icon in Xamarin.Forms
IOS

2 min read


Nov 17, 2021

Adding CoreML model to your Xamarin.iOS Projects

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: https://developer.apple.com/machine-learning/ 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;

IOS

1 min read

Adding CoreML model to your Xamarin.iOS Projects
Adding CoreML model to your Xamarin.iOS Projects
IOS

1 min read


May 12, 2021

Xamarin Tips: Access Progress Bar from the first page to the second page?

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"); Navigation.PopToRootAsync(); }

Xamarin Forms

1 min read

Xamarin Tips: Access Progress Bar from the first page to the second page?
Xamarin Tips: Access Progress Bar from the first page to the second page?
Xamarin Forms

1 min read


May 5, 2021

iOS Biometric Authentication with Xamarin Forms

In this article, I will first examine the FaceID and TouchID authentication methods and then I will talk about how to add them to our Xamarin Forms applications. iOS Biometric Authentication Before we move on to how to use these in practice, let’s see these technologies and how they work on iOS. Biometric…

Xamarin

5 min read

iOS Biometric Authentication with Xamarin Forms
iOS Biometric Authentication with Xamarin Forms
Xamarin

5 min read


Apr 2, 2021

Xamarin Tips: Change screen orientation with MessagingCenter

We can force the pages into Landscape mode at runtime as needed. UWP, iOS and Android require different approach, so here’s how we can handled it. Xamarin.Forms: public partial class MyAwesomePage : ContentPage { public MyAwesomePage() { InitializeComponent(); } protected override void OnAppearing() { base.OnAppearing(); MessagingCenter.Send(this, "SetLandscapeModeOn"); }

Xamarin Ios

1 min read

Xamarin Tips: Change screen orientation with MessagingCenter
Xamarin Tips: Change screen orientation with MessagingCenter
Xamarin Ios

1 min read


Apr 2, 2021

Xamarin Tips: Round Button in Xamarin.Forms with Fonts

We can create a simple round buttton with font icon in Xamarin.Forms application like below: Add font family to your shared app as an EmbeddedResource 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”)]

Xamarin Forms

1 min read

Xamarin Tips: Round Button in Xamarin.Forms with Fonts
Xamarin Tips: Round Button in Xamarin.Forms with Fonts
Xamarin Forms

1 min read

Tuğçe Arar

Tuğçe Arar

242 Followers

iOS Developer

Following
  • The Educative Team

    The Educative Team

  • Amit Shekhar

    Amit Shekhar

  • Halil Özel

    Halil Özel

  • Muzli

    Muzli

  • Matt Eland

    Matt Eland

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech