So your code is crashing with EXC_BAD_INSTRUCTION and you are getting a error like Fatal error: Unexpectedly found nil while unwrapping an Optional value or Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value This crash arises when we attempt to forcefully or Implicitly unwrap an optional and… Read more »
In this post, I will discuss how to save a custom object in UserDefaults. We will use Codable and JSON to save and retrieve data from UserDefaults. Before we begin let me caution you UserDefaults are not your database. Use CoreData or Realm for all your heavy lifting. Make your… Read more »
Very large files can not be converted into data at once and moved around in variables. It is simply not possible as very large files could trigger memory warning and eventual crash. Now the question arises how do we upload very large files using Alamofire? Solution is simple just pass… Read more »
If you are facing a situation that your app crashes only on TestFlight build then you need to follow following steps Add you apple account to your Xcode. You can do this by going to Xcode-> preferences->Accounts. Click on the + button and the same apple developer account which you… Read more »
If you require to have all the cases of a specific enumeration as an array then you can use CaseIterable. You need to write CaseIterable after enumeration name and swift will expose a property allCases which is collection of all enumeration cases
You can easily integrate camera functionality in your application using UIImagePickerController which is built-in UIKit. It requires very few steps to do so. I am providing the basic steps below Make your viewcontroller calss conform to UIImagePickerControllerDelegate and UINavigationControllerDelegate Add extention to your viewcontroller Your code is almost done. Now… Read more »
Communicating with a server gives an entirely new dimension to an application and can do a huge amount of value addition for both client and business. But communication with server also comes with its share of risks. A insecure connection is really a bad idea but a poorly implemented https… Read more »
I am writing this post because I believe in the power to the individual. In this post, I will give you step by step instructions to install Letsencrypt certificate on Godaddy shared hosting without depending on any third-party services who want you to pay for something that is free. Instead… Read more »
React is a Javascript library by facebook for creating interactive, state-driven UI. React has a component-based approach where simple components are composed together to make complex UI. The question section below will answer frequently asked interview question for React. Question 1: What is JSX?Answer 1: JSK is a syntax extension… Read more »
In this post, we will deal with installing react native camera, hassle-free into an android app and will configure it to use Firebase MLKit for face detection Before we start integrating we assume that you have a react native app with firebase integrated. If not then please go through creating… Read more »