Using Label height from the HeightConstraint if there is any instead of the Label Font line height if no HeightConstraint set, will be using SkeletonAppearance.default.multilineHeight as it was before
21 lines
682 B
Swift
21 lines
682 B
Swift
// Copyright © 2017 SkeletonView. All rights reserved.
|
|
|
|
import UIKit
|
|
|
|
enum MultilineAssociatedKeys {
|
|
static var lastLineFillingPercent = "lastLineFillingPercent"
|
|
static var multilineCornerRadius = "multilineCornerRadius"
|
|
static var multilineSpacing = "multilineSpacing"
|
|
static var paddingInsets = "paddingInsets"
|
|
static var backupHeightConstraints = "backupHeightConstraints"
|
|
}
|
|
|
|
protocol ContainsMultilineText {
|
|
var constraintHeight: CGFloat? { get }
|
|
var numLines: Int { get }
|
|
var lastLineFillingPercent: Int { get }
|
|
var multilineCornerRadius: Int { get }
|
|
var multilineSpacing: CGFloat { get }
|
|
var paddingInsets: UIEdgeInsets { get }
|
|
}
|