1
1
mirror of https://github.com/bitgapp/eqMac.git synced 2024-12-04 05:52:03 +03:00
eqMac/native/app/Source/UI/DraggableView.swift

19 lines
363 B
Swift

//
// DraggableView.swift
// eqMac
//
// Created by Romans Kisils on 13/07/2019.
// Copyright © 2019 Romans Kisils. All rights reserved.
//
import Foundation
import Cocoa
class DraggableView: NSView {
override func mouseDragged(with event: NSEvent) {
if #available(macOS 10.11, *) {
event.window?.performDrag(with: event)
}
}
}