Skip to content

Commit

Permalink
fix: swift import isn't included properly (#5)
Browse files Browse the repository at this point in the history
* fixed the ios build issue;

* fix: resolve issue with build issue
  • Loading branch information
ashwinKashyapKrishna authored Dec 17, 2024
1 parent 412d65c commit 5509649
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#import "ReactNativeBackgroundRemover.h"
// Conditional import for the Swift header file
#if __has_include("ReactNativeBackgroundRemover-Swift.h")
#import "ReactNativeBackgroundRemover-Swift.h"
#elif __has_include("ReactNativeBackgroundRemover/ReactNativeBackgroundRemover-Swift.h")
#import "ReactNativeBackgroundRemover/ReactNativeBackgroundRemover-Swift.h"
#else
#error "ReactNativeBackgroundRemover-Swift.h not found"
#endif

@implementation BackgroundRemover {
BackgroundRemoverSwift *backgroundRemover;
Expand Down

0 comments on commit 5509649

Please sign in to comment.