Skip to content

Instantly share code, notes, and snippets.

@AmitaiB
Created November 28, 2016 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AmitaiB/25b76b1556485e3ae9de2892e7f15abe to your computer and use it in GitHub Desktop.
Save AmitaiB/25b76b1556485e3ae9de2892e7f15abe to your computer and use it in GitHub Desktop.
Replaces the opaque styles 'value1' and 'value2' with 'rightDetail' and 'leftDetail' respectively.
//
// UITableViewCellExtensions.swift
// HealthBucks
//
// Created by Amitai Blickstein on 11/28/16.
// Copyright © 2016 Amitai Blickstein, LLC. All rights reserved.
//
import UIKit
extension UITableViewCellStyle {
static var rightDetail: UITableViewCellStyle { return UITableViewCellStyle.value1 }
static var leftDetail: UITableViewCellStyle { return UITableViewCellStyle.value2 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment