Skip to content

Instantly share code, notes, and snippets.

@gonghao
Created September 10, 2016 16:29

Revisions

  1. gonghao created this gist Sep 10, 2016.
    7 changes: 7 additions & 0 deletions lazy_var.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    private lazy var detailLabel:UILabel = {
    let label = UILabel()
    label.textColor = UIColor.blackColor()
    label.font = UIFont(name: “KannadaSangamMN”, size: 14.0)
    self.addSubview(label)
    return label
    }()