DraggableEventView

class DraggableEventView : UIView, UIGestureRecognizerDelegate

Draggable event view

  • Delegate

    Declaration

    Swift

    weak var delegate: DraggableEventViewDelegate?
  • Main tap gesture

    Declaration

    Swift

    let mainTapGesture: UITapGestureRecognizer
  • Event

    Declaration

    Swift

    var event: Event? { get set }
  • Dragged start

    Declaration

    Swift

    var draggedStart: Date? { get set }
  • Dragged duration

    Declaration

    Swift

    var draggedDuration: TimeInterval? { get set }
  • Dirty

    Declaration

    Swift

    var dirty: Bool
  • View did load

    Declaration

    Swift

    private var didLoad: Bool
  • Main handle

    Declaration

    Swift

    private let mainHandle: UIView
  • Top handle

    Declaration

    Swift

    private let topHandle: EventHandleView
  • Bottom handle

    Declaration

    Swift

    private let bottomHandle: EventHandleView
  • Handle size

    Declaration

    Swift

    private let handleSize: Float
  • Time label

    Declaration

    Swift

    private let timeLabel: UILabel
  • Duration label

    Declaration

    Swift

    private let durationLabel: UILabel
  • Label container

    Declaration

    Swift

    private let labelContainer: UIView
  • Title label

    Declaration

    Swift

    private let titleLabel: UILabel
  • Is dragging

    Declaration

    Swift

    private var isDragging: Bool { get set }
  • Undocumented

    Declaration

    Swift

    let weatherHourView: WeatherHourView
  • Undocumented

    Declaration

    Swift

    var weather: WeatherData? { get set }
  • Undocumented

    Declaration

    Swift

    var weatherHourViewLayout: LayoutBuilder?
  • Padding vertical

    Declaration

    Swift

    var paddingVertical: Float { get }
  • Opacity on tap

    Declaration

    Swift

    var opacityOnTap: Bool { get }
  • Is draggable

    Declaration

    Swift

    var isDraggable: Bool { get set }
  • Update draggable

    Declaration

    Swift

    private func updateDraggable()
  • Undocumented

    Declaration

    Swift

    override func didMoveToSuperview()
  • Undocumented

    Declaration

    Swift

    private var startToDraw: Date? { get }
  • Undocumented

    Declaration

    Swift

    private var durationToDraw: TimeInterval? { get }
  • Undocumented

    Declaration

    Swift

    private var endToDraw: Date? { get }
  • Update event labels

    Declaration

    Swift

    private func updateEvent()
  • Undocumented

    Declaration

    Swift

    private func loadView()
  • Undocumented

    Declaration

    Swift

    @objc
    func mainDragged(pan: UIPanGestureRecognizer)
  • Undocumented

    Declaration

    Swift

    @objc
    func topDragged(pan: UIPanGestureRecognizer)
  • Undocumented

    Declaration

    Swift

    @objc
    func botDragged(pan: UIPanGestureRecognizer)
  • Undocumented

    Declaration

    Swift

    @objc
    func mainTapped(tap: UITapGestureRecognizer)
  • Undocumented

    Declaration

    Swift

    private func updateShadow()
  • Undocumented

    Declaration

    Swift

    private func updateWeather()