mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
feat: FeComposite filter (#2433)
# Summary <img width="324" alt="image" src="https://github.com/user-attachments/assets/0a9b4a56-d093-49f7-aacd-c198ee00f256"> ## Test Plan Examples app -> Filters -> FeComposite ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | macOS | ❌* | | Android | ✅ | | Web | ✅ | _*_ macOS isn't working as: * `CGBitmapContextCreateImage` always returns null * FeFlood isn't aligned properly (will be fixed in the following PR)
This commit is contained in:
@@ -12,13 +12,18 @@ Pod::Spec.new do |s|
|
||||
s.homepage = package['homepage']
|
||||
s.authors = 'Horcrux Chen'
|
||||
s.source = { :git => 'https://github.com/react-native-community/react-native-svg.git', :tag => "v#{s.version}" }
|
||||
s.source_files = 'apple/**/*.{h,m,mm}'
|
||||
s.source_files = 'apple/**/*.{h,m,mm,metal}'
|
||||
s.ios.exclude_files = '**/*.macos.{h,m,mm}'
|
||||
s.tvos.exclude_files = '**/*.macos.{h,m,mm}'
|
||||
s.visionos.exclude_files = '**/*.macos.{h,m,mm}' if s.respond_to?(:visionos)
|
||||
s.osx.exclude_files = '**/*.ios.{h,m,mm}'
|
||||
s.requires_arc = true
|
||||
s.requires_arc = true
|
||||
s.platforms = { :osx => "10.14", :ios => "12.4", :tvos => "12.4", :visionos => "1.0" }
|
||||
|
||||
s.osx.resource_bundles = {'RNSVGFilters' => ['apple/**/*.macosx.metallib']}
|
||||
s.ios.resource_bundles = {'RNSVGFilters' => ['apple/**/*.iphoneos.metallib']}
|
||||
s.tvos.resource_bundles = {'RNSVGFilters' => ['apple/**/*.appletvos.metallib']}
|
||||
s.visionos.resource_bundles = {'RNSVGFilters' => ['apple/**/*.xros.metallib']}
|
||||
|
||||
if fabric_enabled
|
||||
install_modules_dependencies(s)
|
||||
|
||||
Reference in New Issue
Block a user