Skip to content

Instantly share code, notes, and snippets.

@blau2
blau2 / AppDelegate.swift
Last active June 1, 2018 21:35
AppsFlyer Setup
import AppsFlyerLib
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
AppsFlyerTracker.shared().appsFlyerDevKey = Keys.AppsFlyer.devKey
AppsFlyerTracker.shared().appleAppID = Keys.Apple.appId
AppsFlyerTracker.shared().appInviteOneLinkID = Keys.AppsFlyer.appInviteOnelinkId
AppsFlyerTracker.shared().delegate = self
AppsFlyerTracker.shared().isDebug = true
@blau2
blau2 / ChatInputView.swift
Created January 3, 2018 18:42
UITextView in custom inputaccessoryView not resigning first responder status
import UIKit
class ChatInputView: UIInputView {
@IBOutlet weak var textView: UITextView!
@IBOutlet weak var sendButton: UIButton!
@IBOutlet weak var helpButton: UIButton!
@IBOutlet weak var placeholderLabel: UILabel!
@IBOutlet weak var textViewHeightConstraint: NSLayoutConstraint!
@IBOutlet weak var textViewBottomConstraint: NSLayoutConstraint!