This file contains hidden or 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 UIKit.UIScrollView | |
// MARK: - CONTENT CENTRALIZATION | |
extension UIScrollView { | |
/// Call this method on your `UIScrollView` instance | |
/// when you need to center its content | |
/// relative to the width and height of the `UIScrollView`. | |
/// | |
/// The function first attempts to centralize along the Y-axis |
This file contains hidden or 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
// Created by Ivan Shokurov on 8/12/20. | |
// This a custom slider (by UISlider) | |
// with two thumbs instead of default one. | |
import UIKit | |
//swiftlint:disable:next type_body_length | |
public final class DoubledSlider: UIControl, ViewProgrammatically { | |
// MARK: - UI |