From 1930ac1d80966b71c0467f5f85928c4743673187 Mon Sep 17 00:00:00 2001 From: Marco Cancellieri Date: Thu, 1 Dec 2016 15:40:44 +0100 Subject: [PATCH] open --- NELineLabel.swift | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/NELineLabel.swift b/NELineLabel.swift index de26625..94d48cd 100644 --- a/NELineLabel.swift +++ b/NELineLabel.swift @@ -8,28 +8,29 @@ import UIKit -@IBDesignable class NELineLabel: UILabel { +@IBDesignable +open class NELineLabel: UILabel { @IBInspectable - var lineHeight: CGFloat = 1 { + open var lineHeight: CGFloat = 1 { didSet { self.setNeedsDisplay() } } @IBInspectable - var lineSpace: CGFloat = 10 { + open var lineSpace: CGFloat = 10 { didSet { self.setNeedsDisplay() } } - var lineY: CGFloat { + open var lineY: CGFloat { return self.bounds.midY - self.lineHeight / 2 } - override func draw(_ rect: CGRect) { + override open func draw(_ rect: CGRect) { super.draw(rect) let size = self.intrinsicContentSize