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
import UIKit | |
extension UIImage { | |
subscript (x: Int, y: Int) -> UIColor? { | |
if x < 0 || x > Int(size.width) || y < 0 || y > Int(size.height) { | |
return nil | |
} |
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
let darkNavy = UIColor(red:0.07, green:0.09, blue:0.18, alpha:1.0) | |
let lightBlue = UIColor(red:0.22, green:0.52, blue:0.84, alpha:1.0) | |
let oceanGreen = UIColor(red:0.22, green:0.52, blue:0.84, alpha:1.0) | |
let lightningYellow = UIColor(red:0.98, green:0.71, blue:0.16, alpha:1.0) | |
let greyBlue =UIColor(red:0.55, green:0.56, blue:0.63, alpha:1.0) | |
let geenishGrey = UIColor(red:0.80, green:0.85, blue:0.75, alpha:1.0) | |
let lighterBlue = UIColor(red:0.53, green:0.67, blue:0.86, alpha:1.0) | |
let mustardYellow = UIColor(red:0.83, green:0.63, blue:0.23, alpha:1.0) |
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
private let kTableHeaderHeight: CGFloat = 300 | |
var headerView: UIView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
headerView = tableView.tableHeaderView | |
tableView.tableHeaderView = nil | |
tableView.addSubview(headerView) |
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
//Move Object | |
public float moveSpeed; | |
// Use this for initialization | |
void Start () { | |
moveSpeed = 1f; | |
} | |
// Update is called once per frame | |
void Update () { |
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
import Foundation | |
import UIKit | |
class ScrollingImageCell: UICollectionViewCell { | |
var imageView: UIImageView! | |
var scrollView: UIScrollView! | |
var doubleTapGesture: UITapGestureRecognizer! | |
var image: UIImage? { | |
didSet{ |
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
// | |
// HKTypeIdentifiers | |
// HealthKit | |
// | |
// Copyright (c) 2014 Apple Inc. All rights reserved. | |
// | |
/*--------------------------------*/ | |
/* HKQuantityType Identifiers */ |
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
// | |
// SwiftyProgressHUD.swift | |
// mWELL | |
// | |
// Created by Shubham Naik on 11/07/17. | |
// Copyright © 2017 Shubham. All rights reserved. | |
// | |
import UIKit | |
class SwiftyProgressHUD: UIView { |
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
# Name of the resource we're selectively copying | |
GOOGLESERVICE_INFO_PLIST=GoogleService-Info.plist | |
# Get references to dev and prod versions of the GoogleService-Info.plist | |
# NOTE: These should only live on the file system and should NOT be part of the target (since we'll be adding them to the target manually) | |
GOOGLESERVICE_INFO_DEV=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Dev/${GOOGLESERVICE_INFO_PLIST} |
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
extension XCTestCase { | |
func asyncExpectation(description: String, timeout: TimeInterval = 10, completion: (XCTestExpectation) -> ()) { | |
let promise = expectation(description: description) | |
completion(promise) | |
waitForExpectations(timeout: timeout, handler: nil) | |
} | |
} |
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
[ | |
{ | |
"num_subscribers":8989, | |
"tagline":"Fast Company inspires a new breed of innovative and creative thought leaders who are actively inventing the future of business.", | |
"value":"http://feeds.feedburner.com/fastcompany/headlines", | |
"label":"Fast Company", | |
"score":8989.0, | |
"link":"https://www.fastcompany.com", | |
"raw_score":9.396447, | |
"id":1264 |