This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma mark - BTDurableView | |
@interface BTDurableView : UIView | |
@end | |
@implementation BTDurableView | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class FlexibleTextAttachment: NSTextAttachment { | |
// MARK: - Параметры | |
enum Resize: Int { | |
case none | |
case toLowercase | |
case toUppercase | |
case toLineHeight | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
extension UIFont { | |
func with(traits: UIFontDescriptor.SymbolicTraits) -> UIFont { | |
if let fontDescriptor = self.fontDescriptor.withSymbolicTraits(traits) { | |
return UIFont(descriptor: fontDescriptor, size: 0) | |
} else { | |
return self | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SemanticVersion.swift | |
// library | |
// | |
// Created by Денис Либит on 27.07.2020. | |
// | |
import Foundation | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if DEBUG | |
import Foundation | |
import UIKit | |
public final class Millimetrovka: UIView { | |
public required init( | |
frame: CGRect, | |
mm: CGFloat = 10, | |
cm: CGFloat = 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - EmptinessDetector | |
internal struct EmptinessDetector<Wrapped> { | |
let value: Wrapped | |
init(_ value: Wrapped) { | |
self.value = value | |
} | |
var isEmpty: Bool { |