Chapter 02: Variables & Constants in Swift

Data Types in Swift Language Integers i.e. Int:1, 2, 3, 199, 1000Float & Doubles:3.14, 1.168, M_PIBoolean Values like Bool:true or falseCollection of Characters like Strings:“iOS Development”, “Apple”, “1.2” We can create our data type using the keywords Struct & Class. All About Variables Here is how we declare Variables in Swift:First, we start with the …

Chapter 01: Let’s Learn Swift Programming Language

About Swift Swift Programming Language is a new sensation, something happening, or the next paradigm in the computer programming world. Apple introduced Swift at WWDC, Apple’s World Wide Developer Conference, in 2014. Apple declared Swift an Open-Source Programming Language on December 3, 2015. Swift is getting a warm welcome from the development community as a …

Identify the iPhone or iPad model programmatically using Swift Language.

You may be programming a Universal App for iPhone, iPad, or iPad Pro and wondering how to write conditional code for those variant iOS device sizes. So here is how to write code by identifying the device height of your display or frame. Here is how to solve this situation by identifying device height, Note:This …

Call function from FirstViewController to SecondViewController using Swift Programming Language.

Here is the situation in your Xcode project where you want to call a method from another class Swift file to your original class of Swift file. Let’s call your original swift class file ‘FirstViewController’, which has ‘UIViewController’ as a superclass. The second swift that you want to call a function from, we will assume …

Create a single PDF file by combining multiple documents using Preview on Mac.

Here is a simple solution to create a single PDF by combining multiple files from various file types. Assumption: I Assume you have 10 PNG files you want to combine into a single PDF file. Note: It doesn’t matter if those ten files have different height & width dimensions. Here is how to do this: …

How do you use Disk Utility to partition disks on a Mac?

As per Wikipedia: Disk Utility is a system utility for performing disk and disk volume-related tasks on the macOS. Day-to-day functions supported by Disk Utility are: Now, we will learn how to partition disks, Important Note: Precaution: Before proceeding, backup all your computer data using Time Machine on a hard drive other than the one …

How do you change or upgrade the time machine backup hard disk without losing your old backup data?

Here is how to transfer backups from a current backup drive to a new high-capacity backup drive Step 01: First, check the format of your new backup drive Step 02: Set permissions on your new backup drive

What does the Trust this Computer functionality mean, and what if you accidentally tapped on Don’t Trust this Computer and want to reset it?

What do trust settings mean to your iOS & macOS device When you connect your iPhone, iPad, or iPod touch to a computer for the first time, an alert asks whether you want to trust this computer or not. Relationships of Trusted Devices:

How to open an Apple macOS app from an unidentified developer.

If you are like mine, use safe macOS default settings to allow the system to run & open apps only from third-party Identified App Developers. You may face a problem with something like this. Your Mac’s Security & Privacy preferences will not allow you to open the app from an unidentified macOS App Developer. If …