Skip to content

Instantly share code, notes, and snippets.

View kellyhuberty's full-sized avatar

Kelly Huberty kellyhuberty

  • Target
  • Minnesota, USA
View GitHub Profile
@kellyhuberty
kellyhuberty / PlaceholderTextView.swift
Last active December 9, 2019 17:04
UITextView with placeholder text
class PlaceholderTextView: UITextView {
override init(frame: CGRect, textContainer: NSTextContainer?) {
super.init(frame: frame, textContainer: textContainer)
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
@kellyhuberty
kellyhuberty / CaseIterable+UITableView.swift
Created January 13, 2019 23:08
I've been using this piece of code to clean up my table view code by storing the section place and definitions in an enum conforming to CaseIterable.
//
// CaseIterable+UITableView.swift
//
//
// Created by Kelly Huberty on 12/16/18.
// Copyright © 2018 Kelly Huberty. All rights reserved.
//
import Foundation