Skip to content

Instantly share code, notes, and snippets.

View trulyronak's full-sized avatar
🌏

Ronak Shah trulyronak

🌏
View GitHub Profile
// in cell for row
var day : Date?
if (indexPath as NSIndexPath).row >= self.getShiftInSection((indexPath as NSIndexPath).section){
day = self.dateForIndexPath(indexPath)
style how you want and check if your date contains date with predicate
}else{
//style for blank cell
}
@trulyronak
trulyronak / ViewUtilities.swift
Created April 28, 2016 04:35 — forked from feighter09/ViewUtilities.swift
IBInspectable UIView Extensions for Fun and Profit
extension UIView {
@IBInspectable var borderColor: UIColor? {
get { return layer.borderColor.map(UIColor.init) }
set { layer.borderColor = newValue?.CGColor }
}
@IBInspectable var borderWidth: CGFloat {
get { return layer.borderWidth }
set { layer.borderWidth = newValue }
}