Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
open
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcocanc committed Dec 1, 2016
1 parent 8a2d2b1 commit 1930ac1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions NELineLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1930ac1

Please sign in to comment.