File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -672,7 +672,7 @@ extension FloatingPanelController {
672
672
}
673
673
674
674
extension FloatingPanelController {
675
- private static let dismissSwizzling : Any ? = {
675
+ private static let dismissSwizzling : Void = {
676
676
let aClass : AnyClass ! = UIViewController . self //object_getClass(vc)
677
677
if let imp = class_getMethodImplementation ( aClass, #selector( dismiss ( animated: completion: ) ) ) ,
678
678
let originalAltMethod = class_getInstanceMethod ( aClass, #selector( fp_original_dismiss ( animated: completion: ) ) ) {
@@ -681,10 +681,8 @@ extension FloatingPanelController {
681
681
let originalMethod = class_getInstanceMethod ( aClass, #selector( dismiss ( animated: completion: ) ) )
682
682
let swizzledMethod = class_getInstanceMethod ( aClass, #selector( fp_dismiss ( animated: completion: ) ) )
683
683
if let originalMethod = originalMethod, let swizzledMethod = swizzledMethod {
684
- // switch implementation..
685
684
method_exchangeImplementations ( originalMethod, swizzledMethod)
686
685
}
687
- return nil
688
686
} ( )
689
687
}
690
688
You can’t perform that action at this time.
0 commit comments