Skip to content

Instantly share code, notes, and snippets.

@shahankit
shahankit / ContentCell.swift
Created August 10, 2018 21:15
iOS: Rendering bordered text in UILabel
import UIKit
class ContentCell: UITableViewCell {
@IBOutlet weak var titleLabel: HighlightedTextLabel!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
@shahankit
shahankit / cloudSettings
Last active June 26, 2021 04:19
Visual Studio Code Sync Settings GIST
{"lastUpload":"2021-06-26T04:19:22.055Z","extensionVersion":"v3.4.3"}
@shahankit
shahankit / shadow.swift
Created September 11, 2015 14:38
ios: Adding shadow to view
recCardView.layer.shadowColor = UIColor.blackColor().CGColor
recCardView.layer.shadowOffset = CGSizeMake(0, 1)
recCardView.layer.shadowOpacity = 0.3
recCardView.layer.shadowRadius = 1.0
recCardView.layer.shadowPath = UIBezierPath(roundedRect: recCardView.bounds, cornerRadius: 2.0).CGPath