Skip to content

Instantly share code, notes, and snippets.

Avatar
🔮
Building Raycast

Thomas Paul Mann thomaspaulmann

🔮
Building Raycast
View GitHub Profile
@thomaspaulmann
thomaspaulmann / ExampleViewController.swift
Created Jun 12, 2016
It's such a pain to handle the keyboard experience in iOS. Especially when you have bottoms on the button that you will show and so on. Here is a simple Extension that handle's the stuff for you. Start/Stop your observation and provide a bottom constraint for the view that you wanna handle. That's it!
View ExampleViewController.swift
//
// ExampleViewController.swift
//
// Created by Thomas Paul Mann on 11/06/16.
// Copyright © 2016 Thomas Paul Mann. All rights reserved.
//
import UIKit
class ExampleViewController: UIViewController {