Showing 1 to 10 of 55 posts.

Swift Array Map method with a trailing closure

Posted on April 27th, 2020 in Swift by George

Example of how to use map function with a trailing closure over an array value.


How to locate Sql sqlite / .sqlite file for IOS Core Data application , SwiftUI Core Data Debug

Posted on February 23rd, 2020 in Swift by George


Sometimes you want to observe the database entries in your Core Data application.

You may want to use An Sqlite editor to debug but you don't know where to locate the .sqlite file.

Here is how to find the file and more!


How to clear Core Data store/objects from device, Delete Core Data data Swift UI

Posted on February 22nd, 2020 in Swift by George

If you are developing with Core Data chances are you have added some object and then you have modified the model of the Entity. Now you have errors in XCode and you want to clear all the objects from Core Data persistent storage.

How to do it? Check this post out 


Swift 5, Swift 5.1 Bubble Sort algorithm implementation

Posted on January 31st, 2020 in Swift by George

Bubble sort algorithm implementation in Swift 5 and Swift 5.1 with explanatory comments and  explicit expanded output


Split string to array SwiftUI / Swift 5.1

Posted on January 1st, 2020 in Swift by George


How to split a string into an array using Swift 5.1!

Using the .components String method.


How to uppercase text SwiftUI TextField

Posted on December 16th, 2019 in Swift by George

How to uppercase/capitalize text inside TextField Swift 5 SwiftUI


TextField text center SwiftUI

Posted on December 16th, 2019 in Swift by George

How to center text inside TextField SwiftUI


Xcode 11 Swift UI available font names for your application

Posted on December 15th, 2019 in Swift by George

Here is an exhaustive list with the available font names to be used in your IOS development. as in IOS 12


SwiftUI use RGB for text. How to add custom RGB colours UIColor/ Color / .foregroundColor

Posted on December 15th, 2019 in Swift by George

Here is a short tutorial on how to use generic/conventional RGB color values with SwiftUI Swift 5.1 RGB values for UIColor are between 0 and 1 (see the documentation "specified as a value from 0.0 to 1.0")


How to open and parse JSON file/data in Swift 5.1

Posted on December 1st, 2019 in Swift by George

A short example of how to open a JSON file from the root folder of the project.

This example will use a fictional file named Addresses, "addressesAPI" of type txt.