Posts with swift Tag

Delegate Pattern - Swift Programming

In many of the guides and tutorials I came across, many of them suggested a one to one usage. Here I’ll use multiple delegates to update the StatusBarItem title and a NSTextfield. First off what are Delegates. It’s a programming paradigm allowing...

Read more

Swift Optionals and Unwrapping

Optionals is a Swift type. The key thing to remember is it can hold a value or no value. We append ? to any type to declare it as an optional


var beer: String? = “Atomic”

Optional definition

enum Optional {
    case none...

Read more

Binary Search Tree - Finding the Minimum Value

During my revision of the Binary Search Tree, it seemed certain youtube videos did not cover this well enough. After a certain time, juggling different conditions, it didn't seem their implementation worked for all cases, only covering specific ones....

Read more