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.
doctor_app_flutter/ios/Runner/Extensions.swift

28 lines
653 B
Swift

4 years ago
//
// 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){
4 years ago
isEnabled = enable
if enable == false{
4 years ago
gestureRecognizers?.forEach({ gest in
removeGestureRecognizer(gest)
})
}
}
}
4 years ago
extension UIView{
func hidden(_ hidden:Bool, rootView:UIView){
UIView.transition(with: rootView, duration: 0.5, options: .transitionCrossDissolve, animations: {
self.isHidden = hidden
})
}
}