Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jimspriggs on github.
  • I am johnhurst (https://keybase.io/johnhurst) on keybase.
  • I have a public key ASDj6yu6FLICD0aBpUgXjxY6LnzVwDKgLssjjJPaXYYAIQo

To claim this, I am signing this object:

@JimSpriggs
JimSpriggs / toast.swift
Created July 3, 2017 15:03
Toast equivalent for iOS
import UIKit
class ToastView: UIView {
private static let hLabelGap: CGFloat = 40.0
private static let vLabelGap: CGFloat = 20.0
private static let hToastGap: CGFloat = 20.0
private static let vToastGap: CGFloat = 10.0
private var textLabel: UILabel!