2022-04-13 14:43:16 +02:00
|
|
|
//
|
|
|
|
// UIView.swift
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Created by MainasuK on 2022-4-13.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
2022-09-30 13:28:09 +02:00
|
|
|
import MastodonCore
|
2022-04-13 14:43:16 +02:00
|
|
|
|
|
|
|
extension UIView {
|
|
|
|
public static var separatorLine: UIView {
|
|
|
|
let line = UIView()
|
2023-09-27 15:08:12 +02:00
|
|
|
line.backgroundColor = .separator
|
2022-04-13 14:43:16 +02:00
|
|
|
return line
|
|
|
|
}
|
|
|
|
|
|
|
|
public static func separatorLineHeight(of view: UIView) -> CGFloat {
|
|
|
|
return 1.0 / view.traitCollection.displayScale
|
|
|
|
}
|
|
|
|
}
|