Tag Archives: Swift

Dark Mode in iOS

Dark Mode was revealed at WWDC 2019 and debuted with iOS 13. It gives iOS a darker look. The appearance of Dark Mode is determined by trait collections. When a user modifies the system’s look, the system requests that all windows and views redraw their contents. Without any additional logic, UIKit controls support it out Continue Reading »

Data Encryption in Swift

Encryption – Data encryption is the process of converting plain text data into an unreadable, encoded representation. After encrypted data has been decrypted, users and processes can read and process it.  Encryption converts the data into an unusable form due to this there’s less chance of hacking and data theft.  Plain text is scrambled by Continue Reading »

Fire base Environment

Multiple Firebase Environments(GoogleService-Info.plist) in iOS

A common scenario in application development is to have different environments, such as Debug, QA, Production… can be resolve via Multiple Firebase Environments. Requirement of having Multiple Firebase Environments : While your app is in development mode, or while it is being tested by the QA department, some “data pollution” could reach Firebase servers. Imagine your application is going to use Firebase Continue Reading »

JSONExport: JSON to Model

JSONExport:  Now you do not need to Understand your JSON Structure and create your model manually. Here is a utility to convert your JSON into model to do that. You just need to paste your JSON in JSON field. First it will check it JSON is valid, then convert it into model. It will create different Continue Reading »

Tailor: Clean and Organized Code

  I found this quote by James O. Coplien on Japanese workplace organization methodology called 5S Clean your workplace on daily basis completely or set cleaning frequency. Use cleaning as inspection. Prevent machinery and equipment deterioration. Keep workplace safe and easy to work. Keep workplace clean and pleasing to work in. Just like our organization, the codebase Continue Reading »

Alamofire

Alamofire: Alamofire is a HTTP networking based library for iOS and macOS. It is used to handle HTTP request and response. It is the wrapper class of URLSession. Before Alamofire: You need to prepare all request by yourself Task handling is complicated Multipart request and File downloading & uploading is complicated Image caching needs to done Continue Reading »

Error Handling in Swift 3.0

Error Handling: Error is an issue or unexpected condition that may cause a program to not function properly. Error can be compile time or runtime. Error Handling is a process of identifying, catching and recovering  the error conditions. Here we are trying to handle server side error which occurred while sending request or receiving response. These errors maybe Continue Reading »