Posts

macOS 10.14 Mojave’s Archive Utility

Image
Majority of macOS users are familiar with the name called Archive Utility. This is the ease-to-use compress tool/app, shipped with macOSs. Although you can’t find it neither in your Application folder nor in your Launchpad. This is located in /System/Library/CoreServices/Applications, along with other critical Apps for macOS. And because of this useful utility App, file compression and expansion became so easy in macOS. Even we don’t need any third party tools to download and install for those purposes. In macOS, any zipped file can be expand by double click into it. Other way, any file can be compressed by secondary click and pick compress option from the menu. And all these are happening because of Archive Utility is running in background Terminal Commands zip archive.zip file.txt unzip archive.zip Here we will talk about the Archive Utility in Mojave (latest macOS 10.14+), it’s functionalities and hidden features, which we may ignore or not aware about by mean. Journey to...

TechSHeaf Intro Video

Swift Programming: Best practices for unwrap objects in swift

Unwrapping an optional is a common process in App development for the Apple ecosystem. Multiple ways of unwrapping are possible, but picking the right one is sometimes challenging. In this article we will discuss the common scenarios of a requirement for unwrapping an optional and try to find out the best fits, depending on the situation.  Scenarios   Before begin, let’s discuss, What is Optional in Swift? In Swift, an optional can contain either a real value or nil (null for other languages), which indicates no value. The optional object can be denoted with a question mark (?). The following example will give you the differences between the normal variable and the operational variable declaration. 1 var fname: String 2 var lname: String? 1st statement is to declare a variable “fname”, typed String. Now it is mandatory to assign a String typed value into this variable, before move further. Otherwise, it will lead you to a compiler error. The 2...