a9c22f502a
* update line height logic * update property name * update README * update README * Update README.md * fix typo
37 lines
872 B
Swift
37 lines
872 B
Swift
//
|
|
// Copyright SkeletonView. All Rights Reserved.
|
|
//
|
|
// Licensed under the MIT License (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// https://opensource.org/licenses/MIT
|
|
//
|
|
// UITextView+IBInspectable.swift
|
|
//
|
|
// Created by Juanpe Catalán on 19/8/21.
|
|
|
|
import UIKit
|
|
|
|
public extension UITextView {
|
|
|
|
@IBInspectable
|
|
var lastLineFillPercent: Int {
|
|
get { return lastLineFillingPercent }
|
|
set { lastLineFillingPercent = min(newValue, 100) }
|
|
}
|
|
|
|
@IBInspectable
|
|
var linesCornerRadius: Int {
|
|
get { return multilineCornerRadius }
|
|
set { multilineCornerRadius = newValue }
|
|
}
|
|
|
|
@IBInspectable
|
|
var skeletonLineSpacing: CGFloat {
|
|
get { return multilineSpacing }
|
|
set { multilineSpacing = newValue }
|
|
}
|
|
|
|
}
|