So i've been trying to create a Native Binding which can be used in Xamarin Forms, so its been fine, but there's one instance where i'm adding a new
Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[BTDropInRequest setCardholderNameSetting:]: unrecognized selector sent to instance
This is my ApiDefinition class
[NullAllowed, Export("cardholderNameSetting", ArgumentSemantic.Strong)]
BTFormFieldSetting CardHolderNameSetting { get; set; }
And i've defined BTFormFieldSetting
in Structs as
[Native]
public enum BTFormFieldSetting : long
{
BTFormFieldDisabled ,
BTFormFieldOptional,
BTFormFieldRequired = 0
}
and this is my iOS Native equivalent
@property (nonatomic, assign) BTFormFieldSetting cardholderNameSetting;
and this what is defined for BTFormFieldSetting
typedef NS_ENUM(NSInteger, BTFormFieldSetting) {
BTFormFieldDisabled = 0,
BTFormFieldOptional,
BTFormFieldRequired
};
@interface BTDropInRequest : NSObject <NSCopying>
I've included the Native Framework for the Binding Library and if i do not use this piece of code it works fine Any Inputs would be deeply appreciated