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 | |
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 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 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 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 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
#!/bin/bash | |
PRODUCT_NAME=<YOUR_PRODUCT_NAME> | |
API_TOKEN=<YOUR_TESTFLIGHT_API_TOKEN> | |
TEAM_TOKEN=<YOUR_TESTFLIGHT_TEAM_TOKEN> | |
NOTIFY="True" | |
NOTES="Build uploaded via the upload API" | |
if [ "$1" ] | |
then | |
NOTES="$1" |
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 UIImage | |
{ | |
func tint(color: UIColor, blendMode: CGBlendMode) -> UIImage | |
{ | |
let drawRect = CGRectMake(0.0, 0.0, size.width, size.height) | |
UIGraphicsBeginImageContextWithOptions(size, false, scale) | |
let context = UIGraphicsGetCurrentContext() | |
CGContextClipToMask(context, drawRect, CGImage) | |
color.setFill() | |
UIRectFill(drawRect) |
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
// | |
// UIResponder+UserActivity.swift | |
// | |
import UIKit | |
import CoreSpotlight | |
import MapKit | |
public extension UIResponder { |
OlderNewer