Skip to content

Commit

Permalink
⭐️ Impl: Add CAAnimation+Helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed May 1, 2023
1 parent 596cce5 commit 9c2771d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ios/src_library/Extensions/CAAnimation+Helpers.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// CAAnimation+Helpers.swift
// react-native-ios-modal
//
// Created by Dominic Go on 5/1/23.
//

import Foundation

public extension CAAnimation {
func waitUntiEnd(_ block: @escaping () -> Void){
DispatchQueue.main.asyncAfter(
deadline: .now() + self.duration,
execute: block
);
};
};

0 comments on commit 9c2771d

Please sign in to comment.