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
platform :ios, '10.3' | |
target 'MaterialTextInputOutlinedPoC' do | |
use_frameworks! | |
pod 'MaterialComponents/TextFields+ColorThemer', '~> 75.0' | |
pod 'MaterialComponents/TextFields+TypographyThemer', '~> 75.0' | |
end |
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
// | |
// UIResponder+UserActivity.swift | |
// | |
import UIKit | |
import CoreSpotlight | |
import MapKit | |
public extension UIResponder { |
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 | |
import AVFoundation | |
import Firebase | |
class StoryTellerViewController: UIViewController { | |
private lazy var previewLayer = AVCaptureVideoPreviewLayer(session: captureSession) | |
private lazy var captureSession: AVCaptureSession = { | |
let captureSession = AVCaptureSession() | |
guard let captureDevice = AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .back), |
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 | |
import Vision | |
import AVFoundation | |
class BearmojiViewController: UIViewController { | |
private lazy var drawLayer = CALayer() | |
private lazy var captureSession: AVCaptureSession = { | |
let captureSession = AVCaptureSession() | |
guard let captureDevice = AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .front), |
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 | |
import Speech | |
class SiriViewController: UIViewController { | |
private static let locale = Locale(identifier: "es-ES") | |
private let speechRecognizer = SFSpeechRecognizer(locale: SiriViewController.locale)! | |
private var recognitionRequest: SFSpeechAudioBufferRecognitionRequest? | |
private var recognitionTask: SFSpeechRecognitionTask? | |
private let audioEngine = AVAudioEngine() |
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 Branch | |
public protocol BranchActivityObjectDelegate: BranchActivityItemProviderDelegate {} | |
public class BranchActivityObject: BranchUniversalObject { | |
private weak var delegate: BranchActivityObjectDelegate? | |
private var params: [AnyHashable : Any]! | |
private var linkProperties: BranchLinkProperties! |
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
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
if !application.isRegisteredForRemoteNotifications { | |
application.registerForRemoteNotifications() | |
} | |
return true | |
} | |
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { | |
print(deviceToken.reduce("", {$0 + String(format: "%02X", $1)})) | |
} |
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 CocoaLumberjack; | |
@interface DDCLSLogger : DDAbstractLogger | |
@end |
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
// | |
// ARSafariViewController.h | |
// | |
// Copyright © 2016 alexruperez. The MIT License (MIT) | |
// | |
@import SafariServices; | |
@interface ARSafariViewController : SFSafariViewController |
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
// | |
// ARURLOperation.h | |
// ARURLOperation | |
// | |
// Created by alexruperez on 13/1/15. | |
// | |
// | |
#import <Foundation/Foundation.h> |
NewerOlder