Swift

17 posts

My journey through Apple Swift, a new programming language for iOS, OS X, watchOS, and tvOS apps.

Swift: Do Try Catch

I've discovered that there are really two ways to accomplish a Try/Catch strategy in Swift. The first example is technically correct but the "shorthand" example...

Learning Swift Lang

I first started writing HTML + Javascript when I was 17 years old. No one told me that I should be a coder nor did anyone bother to tell...

Swift: Simple GET Request

A simple GET request using Swift. //: Playground - noun: a place where people can play import UIKit class Test { init(path:String){ getRequest(path) } func getRequest(path:String)...

Common Swift string extensions

String Extension import Foundation extension String { var length: Int { get { return countElements(self) } } func contains(s: String) -> Bool { return self.rangeOfString(s) ? true : false } func replace(...

You’ve successfully subscribed to Chris Mendez
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Your link has expired
Success! Check your email for magic link to sign-in.