You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
443 B
Swift
21 lines
443 B
Swift
//
|
|
// Extensions.swift
|
|
// Runner
|
|
//
|
|
// Created by Zohaib Iqbal Kambrani on 09/06/2021.
|
|
// Copyright © 2021 The Chromium Authors. All rights reserved.
|
|
//
|
|
import AADraggableView
|
|
|
|
extension AADraggableView{
|
|
func enable(_ enable:Bool){
|
|
if enable == false{
|
|
gestureRecognizers?.forEach({ gest in
|
|
removeGestureRecognizer(gest)
|
|
})
|
|
}else{
|
|
isEnabled = true
|
|
}
|
|
}
|
|
}
|