In Swift you can load HTML files into your WKWebView from an file which is part of your App Bundle. Before you use the below code snippet, please make sure that the HTML file you want to display in WKWebView is added to your project. Load Local HTML File to a WKWebView let myUrl = myProjectBundle.url(forResource: “my-html-file”,…

Read More WKWebView. Load HTML File from App Bundle.

This blog post is more of a cheat sheet type on how to use UIImagePickerController in Swift with Firebase to upload a user profile image to Google cloud. I am also going to include here a video demonstration taken from my video course “Firebase and Swift: Practical examples“. This video will demonstrate the use of the below code…

Read More UIImagePickerController in Swift with Firebase. Cheat Sheet.

This page lists down different Swift code snippets which demonstrate how to work with Firebase Realtime Database. I like to have this page handy when working a mobile app for iOS platform with Swift and Firebase. Set up Firebase Realtime Database Dependencies to install with Cocoapods pod ‘Firebase/Database’ Configure a FirebaseApp shared instance, in your application’s…

Read More Firebase Realtime Database Cheat Sheet

Add Required Libraries to Xcode Project with Cocoapods pod ‘Firebase/Core’ pod ‘Firebase/Messaging’  Enable Push Notifications in Capabilities Tab Enable Background Modes in Capabilities Tab Note: Additionally to enabling the Background Modes, you also need to enable the Remote notifications mode by checking its checkbox as shown in the image below. AppDelegate.swift – Libraries to Import import…

Read More Push Notifications with Firebase Cloud Messaging – Cheat Sheet

With this blog post, I would like to share with you how to send Silent Push Notification using CURL or Postman HTTP client via Firebase Cloud Messaging and how to receive silent push messages in your mobile app built with Swift. Silent push messages when received by your mobile app are not displayed to user…

Read More Silent Remote Notifications with Swift and Firebase

This year was a record for me in the amount of programming tutorials I read and published and I feel so grateful that I have this opportunity to learn and share. I feel like I want to give back to the world more and since it is a Christmas and a New Year time and…

Read More Winter Holiday Give Away – A Video Course of Your Choice

Hi! With this short blog post I wanted to share with you three more very useful Xcode Tips and Trips from a collection recorded by Dee Aliyu Odumosu. The entire collection of 80+ Xcode tips can be found here and if you have not come across it earlier then I encourage you to do so. It…

Read More Xcode Tips and Tricks. Refactoring and Debugging.

With this video tutorial I would like to share with you how to fix the “this class is not key value coding-compliant for the key” error message. Apparently this error message is one of the most common for developers learning to work with Xcode and building their first mobile app user interfaces. It happens when…

Read More How to Fix the “Class is not key value coding-compliant for the key” Error

Hi! With this blog post I want to share with you some more video tutorials on Xcode Tips and Tricks!  If you have not yet watched the videos in my previous blog post then I strongly encourage you to watch them as well: Xcode Tips and Tricks to work with Images and Properties. You will not find…

Read More Xcode Tips and Tricks to Work with Layout Constraints and Views

I was chatting with one of my Youtube channel followers the other day and he asked me to publish a very simple example of how to prompt a user with a dialog message and a question “Are you sure you want to delete this?“. This dialog window should be presented when user taps on Delete button.…

Read More UIAlertController – Confirmation Dialog in Swift