Uncategorized

Set background image to navigationbar in Swift – iOS Swift Tutorial

In this tutorial, we will learn how to set background image to UINavigationBar a background image. Since the iOS 13.0, we do have a new property called appearance, that allows us to change color, font, and image of UINavigationController or UINavigationBar. Prior to iOS 13.0, we can do this by simply setting backgroundImage to UINavigationBar. …

Set background image to navigationbar in Swift – iOS Swift Tutorial Read More »

How to preload content in SFSafariViewController

SFSafariViewController offers iOS developers to load web page inside their app’s. Though there is another control called WKWebView that does the same thing, but offers more customization’s. One should use WKWebView if your app implements customize behavior (UI or behind the scene thing). If you want to show only a webpage for example privacy policy …

How to preload content in SFSafariViewController Read More »

Get difference between two dates in hour minutes – swift

If you are looking for difference between two dates in respect of days, hours, minutes etc., then instead of using timeinterval and calculating days, hours from those seconds. One can use Calendar inbuilt functions to get time difference between two dates as per days, hours, minutes. This can be done using date-components of calendar API …

Get difference between two dates in hour minutes – swift Read More »

How to view document directory contents for the app installed on real iPhone device in xcode

Some of the app on which we are working needs to to store some data locally. For example, images or some database file like .sqlite. While working with simulators, its easy to view contents being saved inside document directory. But when you testing your app on real IPhone device then you are not able to …

How to view document directory contents for the app installed on real iPhone device in xcode Read More »

Integrate push notification using Firebase messaging in swift – iOS swift tutorial

Things required to integrate Push notification Before we jump on to integrate push notification using Firebase messaging in iOS swift, you need few things at your disposal to test iOS push notification. Below is the list of things required to integrate and check push notification integration in iOS. iPhone device – Push notification did not …

Integrate push notification using Firebase messaging in swift – iOS swift tutorial Read More »

How to use Alamofire network reachability manager in iOS swift

For an iOS app, using api call to populate data in the app. Check for internet connectivity is required to make app user experience a more better rather than not opting to detect availability of internet.Alamofire is network library written in swift and used in iOS app development for making network requests. This network library …

How to use Alamofire network reachability manager in iOS swift Read More »