Skip to content

Instantly share code, notes, and snippets.

View thomaspaulmann's full-sized avatar
🔮
Building Raycast

Thomas Paul Mann thomaspaulmann

🔮
Building Raycast
View GitHub Profile
@thomaspaulmann
thomaspaulmann / ExampleViewController.swift
Created June 12, 2016 10:26
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!
//
// ExampleViewController.swift
//
// Created by Thomas Paul Mann on 11/06/16.
// Copyright © 2016 Thomas Paul Mann. All rights reserved.
//
import UIKit
class ExampleViewController: UIViewController {