Posts

Showing posts from April, 2019

Rumoured Apple iPhone XI features

Image
APPLE'S GENERATION NEXT  iPhones rumours have started  promising a plethora of new features and updates. Expected release of the next iPhone batch will be around September 2019. There have been so many different rumours from different sources claiming that the upcoming iPhone's features. 3 Rear Camera with the 12MP selfie cam Apple analyst (mostly accurate) Ming-Chi Kuo has published a new research note for investors about the iPhone cameras. So, the OLED-sporting two iPhones will get a third, super-wide 12-megapixel camera with Sony sensor, and the iPhone XR sequel will move to the two-camera setup you find on the high-end iPhones today (with a telephoto lens). The front cameras on iPhones with TrueDepth module's main colour RGB camera is getting an upgrade from resulting 7 megapixels with 4mp lens elements to 12 megapixels with 5mp lens elements. According to Kuo, who says the company will use a special dark coating to conceal the third lens on the back

Welcome Guide to Swift 5 Escaping String

Image
With the evolution of Swift, we often comes to create strings from raw text which can be a pain. Properly escaping any quotes or backslash characters in the raw text is an exercise in frustration. Swift 5, introduced with Xcode 10.2, introduces a new syntax to make it easier to work with raw text. Traditional Strings With String Literals To create a String from literal text, we use the common method of double quote (") as a starting and ending delimiter and the backslash (\) to escape special characters. For example, to create a String that preserves the double-quotes in this text: let title1 = "This is \"title\" here" // This is "title" here Swift 5 Custom String Escaping Swift 5 allows you to customize the delimiter and escape sequences. This is useful when working with raw text that might contain the delimiters or multiple escape sequence. Here we can pad the start, end and escape delimiters with one or more “ # ” characters.