///
/// NitroGradientAutolinking.mm
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 Marc Rousavy @ Margelo
///

#import <Foundation/Foundation.h>
#import <NitroModules/HybridObjectRegistry.hpp>
#import "NitroGradient-Swift-Cxx-Umbrella.hpp"
#import <type_traits>

#include "HybridLinearGradientViewSpecSwift.hpp"
#include "HybridRadialGradientViewSpecSwift.hpp"
#include "HybridSweepGradientViewSpecSwift.hpp"

@interface NitroGradientAutolinking : NSObject
@end

@implementation NitroGradientAutolinking

+ (void) load {
  using namespace margelo::nitro;
  using namespace margelo::nitro::gradient;

  HybridObjectRegistry::registerHybridObjectConstructor(
    "LinearGradientView",
    []() -> std::shared_ptr<HybridObject> {
      std::shared_ptr<HybridLinearGradientViewSpec> hybridObject = NitroGradient::NitroGradientAutolinking::createLinearGradientView();
      return hybridObject;
    }
  );
  HybridObjectRegistry::registerHybridObjectConstructor(
    "RadialGradientView",
    []() -> std::shared_ptr<HybridObject> {
      std::shared_ptr<HybridRadialGradientViewSpec> hybridObject = NitroGradient::NitroGradientAutolinking::createRadialGradientView();
      return hybridObject;
    }
  );
  HybridObjectRegistry::registerHybridObjectConstructor(
    "SweepGradientView",
    []() -> std::shared_ptr<HybridObject> {
      std::shared_ptr<HybridSweepGradientViewSpec> hybridObject = NitroGradient::NitroGradientAutolinking::createSweepGradientView();
      return hybridObject;
    }
  );
}

@end
