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
//TODO: Make this work | |
static func saveImageToFirebase(withImage inputImage: UIImage, andPhotoIsForProfile inputPhotoIsForProfile: Bool, andUserId inputUserId: String) { | |
// Get a reference to the storage service using the default Firebase App | |
let storage = Storage.storage() | |
// Create a storage reference from our storage service | |
let storageRef = storage.reference() | |
var imageName = "" |
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 | |
import UIKit | |
// source: The Swift Programming Language (Swift 4) | |
// https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Generics.html | |
/* | |
Does everyone know what a Type is? |
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 | |
struct TrafficLight { | |
enum TrafficLightState: Int { | |
case proceed = 1 | |
case proceedWithCaution = 13 | |
case stop = 9 | |
var lightColor: UIColor { |
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 | |
import UIKit | |
var str = "Hello, playground" | |
/* | |
Notes form last week to review before tonight's session: | |
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 | |
import UIKit | |
// Ch 20 | |
// Big Nerd Ranch Swift Programming Book | |
// 2017_5_12 | |
/* | |
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 | |
// Hawaii iOS Developer Meetup | |
// Closures | |
// 2017_5_4 | |
// 6pm | |
import UIKit |