Skip to content

Instantly share code, notes, and snippets.

View jacobmbarnard's full-sized avatar

Jacob M. Barnard jacobmbarnard

  • USA
View GitHub Profile
@jacobmbarnard
jacobmbarnard / MyAutoLayoutTableViewCell.swift
Created September 4, 2018 18:41
Practical Programmatic Auto Layout for UITableViewCell in Swift 4.1
import UIKit
public class MyAutoLayoutTableViewCell: UITableViewCell {
var myRedLabel: UILabel
var myGreenLabel: UILabel
var myBlueLabel: UILabel
override public init(style: UITableViewCellStyle, reuseIdentifier: String?) {
myRedLabel = UILabel(frame: CGRect.zero)