This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Crashlytics | |
class CrashTrackerController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
CLSLogv("CONTROLLER_DID_LOAD - %@",getVaList([self.className])) | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Diver: Swimmable { | |
func swim() { | |
print("Diver is swiming") | |
} | |
} | |
class Whale: Swimmable { | |
func swim() { | |
print("Whale is Swiming") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Diver: Swimmable { | |
func swim() { | |
print(“I am swimming ~~~ -0- ~~~”) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Diver: Swimmable { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Diver { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol Swimmable{ | |
func swim() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
/* | |
Extension with queryItems to Dictionary and Dictionary to queryItems | |
*/ | |
extension URLComponents { | |
/* | |
Get the dictionary from queryItems | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: Playground - noun: a place where people can play | |
/* | |
Snippet to test whether parsing JSON false or 0's and 1's (for booleans) is time effective. | |
With 2000 items Booleans took 0.01858549600001425 | |
and 0's 1's took 0.07641855199472047 | |
*/ | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Shape { | |
var name: String | |
var sides : Int | |
init(sides:Int, named: String) { | |
self.sides = sides | |
self.name = named | |
printShapeDescription() | |
} | |
func printShapeDescription() { | |
print("Shape Name :\(self.name)") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// PullDownSample | |
// | |
// Created by Dinesh Kumar on 15/08/16. | |
// Copyright © 2016 Organization. All rights reserved. | |
// | |
import UIKit |
NewerOlder