Skip to content

Commit

Permalink
Merge pull request #36 from yukiasai/fix/syntax
Browse files Browse the repository at this point in the history
Fix variable name to camel case
  • Loading branch information
xai3 authored Nov 25, 2016
2 parents daafd36 + 7d49858 commit 35ea18a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/UITableView+Source.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ import UIKit
import ObjectiveC

struct UITableViewAssociatedObjectHandle {
static var Source: UInt8 = 0
static var source: UInt8 = 0
}

public extension UITableView {
public var source: Source? {
set {
objc_setAssociatedObject(self, &UITableViewAssociatedObjectHandle.Source, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
objc_setAssociatedObject(self, &UITableViewAssociatedObjectHandle.source, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
dataSource = newValue
delegate = newValue
}
get {
return objc_getAssociatedObject(self, &UITableViewAssociatedObjectHandle.Source) as? Source
return objc_getAssociatedObject(self, &UITableViewAssociatedObjectHandle.source) as? Source
}
}
}

0 comments on commit 35ea18a

Please sign in to comment.