This file contains hidden or 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
//I have a location manager class. This class just holds user current location so that it can be used later in the project. | |
//This will be singleton class later.Since singletons are hard to test(Because of no DI injection mechanism).I have not | |
implemented yet for now.The problem is at the end. | |
class HelperLocationManager:NSObject{ | |
let locationManager:CLLocationManager | |
init(mgr:CLLocationManager) { | |
This file contains hidden or 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
//SAMPLE CODE FROM APPLE | |
//https://developer.apple.com/library/content/samplecode/GenericKeychain/Listings/README_md.html | |
enum Key { | |
//... | |
//.... | |
enum Headers { | |
static let Authorization = "Authorization" | |
static let ContentType = "Content-Type" |
This file contains hidden or 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
// | |
// UIImageExtension.swift | |
// EddyCab | |
// | |
// Created by Anish on 1/4/16. | |
// Copyright © 2016 Esig. All rights reserved. | |
// | |
import Foundation | |
import Alamofire |