Swift

17 posts

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

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.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.