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
/* Copyright 2013 Google Inc. | |
Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0.html */ | |
package com.example.latlnginterpolation; | |
import android.animation.ObjectAnimator; | |
import android.animation.TypeEvaluator; | |
import android.animation.ValueAnimator; | |
import android.annotation.TargetApi; | |
import android.os.Build; |
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
extension String { | |
/// Checks if the `String` is a valid email address. | |
/// ```` | |
/// // Example | |
/// "[email protected]".isValidEmailAddress() // true | |
/// "name(at)email(dot)com".isValidEmailAddress() // false | |
/// "name@email".isValidEmailAddress() // false | |
/// "[email protected]".isValidEmailAddress() // false | |
/// "name.com".isValidEmailAddress() // false |
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
// | |
// EmbedsViewController.swift | |
// | |
// Created by Evan Sobkowicz. | |
// Copyright © 2019 Twitter. All rights reserved. | |
// | |
import UIKit | |
import WebKit | |
import SafariServices |
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
struct DependencyInjector { | |
private static var dependencyList: [String:Any] = [:] | |
static func resolve<T>() -> T { | |
guard let t = dependencyList[String(describing: T.self)] as? T else { | |
fatalError("No povider registered for type \(T.self)") | |
} | |
return t | |
} | |