#if defined(__arm64__) && __arm64__ || (__x86_64__) && __x86_64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef NECOMMONUIKIT_SWIFT_H #define NECOMMONUIKIT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) # define __has_include(x) 0 #endif #if !defined(__has_attribute) # define __has_attribute(x) 0 #endif #if !defined(__has_feature) # define __has_feature(x) 0 #endif #if !defined(__has_warning) # define __has_warning(x) 0 #endif #if __has_include() # include #endif #pragma clang diagnostic ignored "-Wduplicate-method-match" #pragma clang diagnostic ignored "-Wauto-import" #if defined(__OBJC__) #include #endif #if defined(__cplusplus) #include #include #include #else #include #include #include #endif #if !defined(SWIFT_TYPEDEFS) # define SWIFT_TYPEDEFS 1 # if __has_include() # include # elif !defined(__cplusplus) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; # endif typedef float swift_float2 __attribute__((__ext_vector_type__(2))); typedef float swift_float3 __attribute__((__ext_vector_type__(3))); typedef float swift_float4 __attribute__((__ext_vector_type__(4))); typedef double swift_double2 __attribute__((__ext_vector_type__(2))); typedef double swift_double3 __attribute__((__ext_vector_type__(3))); typedef double swift_double4 __attribute__((__ext_vector_type__(4))); typedef int swift_int2 __attribute__((__ext_vector_type__(2))); typedef int swift_int3 __attribute__((__ext_vector_type__(3))); typedef int swift_int4 __attribute__((__ext_vector_type__(4))); typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PASTE) # define SWIFT_PASTE_HELPER(x, y) x##y # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) #endif #if !defined(SWIFT_METATYPE) # define SWIFT_METATYPE(X) Class #endif #if !defined(SWIFT_CLASS_PROPERTY) # if __has_feature(objc_class_property) # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ # else # define SWIFT_CLASS_PROPERTY(...) # endif #endif #if __has_attribute(objc_runtime_name) # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else # define SWIFT_RUNTIME_NAME(X) #endif #if __has_attribute(swift_name) # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else # define SWIFT_COMPILE_NAME(X) #endif #if __has_attribute(objc_method_family) # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else # define SWIFT_METHOD_FAMILY(X) #endif #if __has_attribute(noescape) # define SWIFT_NOESCAPE __attribute__((noescape)) #else # define SWIFT_NOESCAPE #endif #if __has_attribute(ns_consumed) # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else # define SWIFT_RELEASES_ARGUMENT #endif #if __has_attribute(warn_unused_result) # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else # define SWIFT_WARN_UNUSED_RESULT #endif #if __has_attribute(noreturn) # define SWIFT_NORETURN __attribute__((noreturn)) #else # define SWIFT_NORETURN #endif #if !defined(SWIFT_CLASS_EXTRA) # define SWIFT_CLASS_EXTRA #endif #if !defined(SWIFT_PROTOCOL_EXTRA) # define SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_ENUM_EXTRA) # define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) # if __has_attribute(objc_subclassing_restricted) # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA # else # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA # endif #endif #if !defined(SWIFT_RESILIENT_CLASS) # if __has_attribute(objc_class_stub) # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) # else # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) # endif #endif #if !defined(SWIFT_PROTOCOL) # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) # if __has_attribute(objc_designated_initializer) # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) # else # define OBJC_DESIGNATED_INITIALIZER # endif #endif #if !defined(SWIFT_ENUM_ATTR) # if defined(__has_attribute) && __has_attribute(enum_extensibility) # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) # else # define SWIFT_ENUM_ATTR(_extensibility) # endif #endif #if !defined(SWIFT_ENUM) # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type # if __has_feature(generalized_swift_name) # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type # else # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) # endif #endif #if !defined(SWIFT_UNAVAILABLE) # define SWIFT_UNAVAILABLE __attribute__((unavailable)) #endif #if !defined(SWIFT_UNAVAILABLE_MSG) # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) # define SWIFT_WEAK_IMPORT __attribute__((weak_import)) #endif #if !defined(SWIFT_DEPRECATED) # define SWIFT_DEPRECATED __attribute__((deprecated)) #endif #if !defined(SWIFT_DEPRECATED_MSG) # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif #if defined(__OBJC__) #if !defined(IBSegueAction) # define IBSegueAction #endif #endif #if !defined(SWIFT_EXTERN) # if defined(__cplusplus) # define SWIFT_EXTERN extern "C" # else # define SWIFT_EXTERN extern # endif #endif #if !defined(SWIFT_CALL) # define SWIFT_CALL __attribute__((swiftcall)) #endif #if defined(__cplusplus) #if !defined(SWIFT_NOEXCEPT) # define SWIFT_NOEXCEPT noexcept #endif #else #if !defined(SWIFT_NOEXCEPT) # define SWIFT_NOEXCEPT #endif #endif #if defined(__cplusplus) #if !defined(SWIFT_CXX_INT_DEFINED) #define SWIFT_CXX_INT_DEFINED namespace swift { using Int = ptrdiff_t; using UInt = size_t; } #endif #endif #if defined(__OBJC__) #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif @import CoreFoundation; @import Foundation; @import ObjectiveC; @import QuartzCore; @import UIKit; #endif #endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") # pragma clang diagnostic ignored "-Wpragma-clang-attribute" #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) # pragma push_macro("any") # undef any # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="NECommonUIKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) # pragma pop_macro("any") #endif #if defined(__OBJC__) @protocol BrowserToolsBarDelegate; @class ExpandButton; @class NSCoder; SWIFT_CLASS("_TtC13NECommonUIKit15BrowserToolsBar") @interface BrowserToolsBar : UIView @property (nonatomic, weak) id _Nullable delegate; @property (nonatomic, strong) ExpandButton * _Nonnull saveBtn; @property (nonatomic, strong) ExpandButton * _Nonnull closeBtn; @property (nonatomic, strong) ExpandButton * _Nonnull photoBtn; - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; - (void)setupUI; - (void)saveClick; - (void)photoClick; - (void)closeClick; @end SWIFT_PROTOCOL("_TtP13NECommonUIKit23BrowserToolsBarDelegate_") @protocol BrowserToolsBarDelegate - (void)didCloseClick; - (void)didPhotoClick; - (void)didSaveClick; @end @class UIColor; @class NSLayoutConstraint; @class NSString; SWIFT_CLASS("_TtC13NECommonUIKit10CornerCell") @interface CornerCell : UITableViewCell @property (nonatomic, strong) UIColor * _Nonnull fillColor; @property (nonatomic) UIEdgeInsets edgeInset; @property (nonatomic, strong) NSLayoutConstraint * _Nullable dividerLineLeftMargin; @property (nonatomic, strong) NSLayoutConstraint * _Nullable dividerLineRightMargin; - (nonnull instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString * _Nullable)reuseIdentifier OBJC_DESIGNATED_INITIALIZER; @property (nonatomic, strong) UIView * _Nonnull dividerLine; @property (nonatomic) BOOL showDefaultLine; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; - (void)drawRect:(CGRect)rect; - (void)drawRoundedCornerWithRect:(CGRect)rect; @end SWIFT_CLASS("_TtC13NECommonUIKit10CornerView") @interface CornerView : UIView - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; - (void)drawRect:(CGRect)rect; - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; @end @class UIEvent; SWIFT_CLASS("_TtC13NECommonUIKit12ExpandButton") @interface ExpandButton : UIButton - (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent * _Nullable)event SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end typedef SWIFT_ENUM(NSInteger, FileState, open) { FileStateFileOpen = 1, FileStateFileDownload = 2, }; SWIFT_CLASS("_TtC13NECommonUIKit13FileStateView") @interface FileStateView : UIView @property (nonatomic) enum FileState state; - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; - (void)setProgress:(float)progress; @end @class UILabel; SWIFT_CLASS("_TtC13NECommonUIKit21SearchSessionBaseView") @interface SearchSessionBaseView : UITableViewHeaderFooterView - (nonnull instancetype)initWithReuseIdentifier:(NSString * _Nullable)reuseIdentifier SWIFT_UNAVAILABLE; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; - (void)setupUI; - (void)setUpTitleWithTitle:(NSString * _Nonnull)title; @property (nonatomic, strong) UILabel * _Nonnull title; @property (nonatomic, strong) UIView * _Nonnull bottomLine; @end SWIFT_CLASS("_TtC13NECommonUIKit26FunSearchSessionHeaderView") @interface FunSearchSessionHeaderView : SearchSessionBaseView - (void)setupUI; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end SWIFT_CLASS("_TtC13NECommonUIKit13FunSearchView") @interface FunSearchView : UIView - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE; @end /// IQAutoToolbarBySubviews /// Creates Toolbar according to subview’s hirarchy of Textfield’s in view. /// IQAutoToolbarByTag /// Creates Toolbar according to tag property of TextField’s. /// IQAutoToolbarByPosition /// Creates Toolbar according to the y,x position of textField in it’s superview coordinate. typedef SWIFT_ENUM(NSInteger, IQAutoToolbarManageBehaviour, open) { IQAutoToolbarManageBehaviourBySubviews = 0, IQAutoToolbarManageBehaviourByTag = 1, IQAutoToolbarManageBehaviourByPosition = 2, }; @protocol UITextFieldDelegate; @protocol UITextViewDelegate; @class UIViewController; /// Manages the return key to work like next/done in a view hierarchy. SWIFT_CLASS("_TtC13NECommonUIKit26IQKeyboardReturnKeyHandler") SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface IQKeyboardReturnKeyHandler : NSObject /// Delegate of textField/textView. @property (nonatomic, weak) id _Nullable delegate; /// Set the last textfield return key type. Default is UIReturnKeyDefault. @property (nonatomic) UIReturnKeyType lastTextFieldReturnKeyType; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; /// Add all the textFields available in UIViewController’s view. - (nonnull instancetype)initWithController:(UIViewController * _Nonnull)controller OBJC_DESIGNATED_INITIALIZER; /// Should pass UITextField/UITextView intance. Assign textFieldView delegate to self, change it’s returnKeyType. /// @param view UITextField/UITextView object to register. - (void)addTextFieldView:(UIView * _Nonnull)view; /// Should pass UITextField/UITextView intance. Restore it’s textFieldView delegate and it’s returnKeyType. /// @param view UITextField/UITextView object to unregister. - (void)removeTextFieldView:(UIView * _Nonnull)view; /// Add all the UITextField/UITextView responderView’s. /// @param view UIView object to register all it’s responder subviews. - (void)addResponderFromView:(UIView * _Nonnull)view; /// Remove all the UITextField/UITextView responderView’s. /// @param view UIView object to unregister all it’s responder subviews. - (void)removeResponderFromView:(UIView * _Nonnull)view; @end @class UITextField; SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface IQKeyboardReturnKeyHandler (SWIFT_EXTENSION(NECommonUIKit)) - (BOOL)textFieldShouldBeginEditing:(UITextField * _Nonnull)textField SWIFT_WARN_UNUSED_RESULT; - (BOOL)textFieldShouldEndEditing:(UITextField * _Nonnull)textField SWIFT_WARN_UNUSED_RESULT; - (void)textFieldDidBeginEditing:(UITextField * _Nonnull)textField; - (void)textFieldDidEndEditing:(UITextField * _Nonnull)textField; - (void)textFieldDidEndEditing:(UITextField * _Nonnull)textField reason:(UITextFieldDidEndEditingReason)reason SWIFT_AVAILABILITY(ios,introduced=10.0); - (BOOL)textField:(UITextField * _Nonnull)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString * _Nonnull)string SWIFT_WARN_UNUSED_RESULT; - (BOOL)textFieldShouldClear:(UITextField * _Nonnull)textField SWIFT_WARN_UNUSED_RESULT; - (BOOL)textFieldShouldReturn:(UITextField * _Nonnull)textField SWIFT_WARN_UNUSED_RESULT; @end @class UITextView; @class NSURL; @class NSTextAttachment; SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface IQKeyboardReturnKeyHandler (SWIFT_EXTENSION(NECommonUIKit)) - (BOOL)textViewShouldBeginEditing:(UITextView * _Nonnull)textView SWIFT_WARN_UNUSED_RESULT; - (BOOL)textViewShouldEndEditing:(UITextView * _Nonnull)textView SWIFT_WARN_UNUSED_RESULT; - (void)textViewDidBeginEditing:(UITextView * _Nonnull)textView; - (void)textViewDidEndEditing:(UITextView * _Nonnull)textView; - (BOOL)textView:(UITextView * _Nonnull)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT; - (void)textViewDidChange:(UITextView * _Nonnull)textView; - (void)textViewDidChangeSelection:(UITextView * _Nonnull)textView; - (BOOL)textView:(UITextView * _Nonnull)aTextView shouldInteractWithURL:(NSURL * _Nonnull)URL inRange:(NSRange)characterRange interaction:(UITextItemInteraction)interaction SWIFT_WARN_UNUSED_RESULT SWIFT_AVAILABILITY(ios,introduced=10.0); - (BOOL)textView:(UITextView * _Nonnull)aTextView shouldInteractWithTextAttachment:(NSTextAttachment * _Nonnull)textAttachment inRange:(NSRange)characterRange interaction:(UITextItemInteraction)interaction SWIFT_WARN_UNUSED_RESULT SWIFT_AVAILABILITY(ios,introduced=10.0); - (BOOL)textView:(UITextView * _Nonnull)aTextView shouldInteractWithURL:(NSURL * _Nonnull)URL inRange:(NSRange)characterRange SWIFT_WARN_UNUSED_RESULT SWIFT_AVAILABILITY(ios,deprecated=10.0); - (BOOL)textView:(UITextView * _Nonnull)aTextView shouldInteractWithTextAttachment:(NSTextAttachment * _Nonnull)textAttachment inRange:(NSRange)characterRange SWIFT_WARN_UNUSED_RESULT SWIFT_AVAILABILITY(ios,deprecated=10.0); @end /// IQPreviousNextDisplayModeDefault /// Show NextPrevious when there are more than 1 textField otherwise hide. /// IQPreviousNextDisplayModeAlwaysHide /// Do not show NextPrevious buttons in any case. /// IQPreviousNextDisplayModeAlwaysShow /// Always show nextPrevious buttons, if there are more than 1 textField then both buttons will be visible but will be shown as disabled. typedef SWIFT_ENUM(NSInteger, IQPreviousNextDisplayMode, open) { IQPreviousNextDisplayModeDefault = 0, IQPreviousNextDisplayModeAlwaysHide = 1, IQPreviousNextDisplayModeAlwaysShow = 2, }; @class NSBundle; /// 带导航栏的底部弹出视图 /// 待弹出的视图需要重写preferredContentSize来设置大小 SWIFT_CLASS("_TtC13NECommonUIKit23NEActionSheetController") @interface NEActionSheetController : UINavigationController /// 根据要弹出的视图初始化 /// \param rootViewController 待弹出视图 /// - (nonnull instancetype)initWithRootViewController:(UIViewController * _Nonnull)rootViewController OBJC_DESIGNATED_INITIALIZER; - (void)viewDidLayoutSubviews; - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder SWIFT_UNAVAILABLE; - (id _Nullable)forwardingTargetForSelector:(SEL _Null_unspecified)aSelector SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)initWithNavigationBarClass:(Class _Nullable)navigationBarClass toolbarClass:(Class _Nullable)toolbarClass SWIFT_UNAVAILABLE; @end @class NEInvocation; SWIFT_CLASS("_TtC13NECommonUIKit15NEBarButtonItem") SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NEBarButtonItem : UIBarButtonItem - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; @property (nonatomic, strong) UIColor * _Nullable tintColor; /// Additional target & action to do get callback action. Note that setting custom target & selector doesn’t affect native functionality, this is just an additional target to get a callback. /// @param target Target object. /// @param action Target Selector. - (void)setTarget:(id _Nullable)target action:(SEL _Nullable)action; /// Customized Invocation to be called when button is pressed. invocation is internally created using setTarget:action: method. @property (nonatomic, strong) NEInvocation * _Nullable invocation; @end @class UIImage; /// NEBarButtonItemConfiguration for creating toolbar with bar button items SWIFT_CLASS("_TtC13NECommonUIKit28NEBarButtonItemConfiguration") SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NEBarButtonItemConfiguration : NSObject - (nonnull instancetype)initWithBarButtonSystemItem:(UIBarButtonSystemItem)barButtonSystemItem action:(SEL _Nonnull)action OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image action:(SEL _Nonnull)action OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)initWithTitle:(NSString * _Nonnull)title action:(SEL _Nonnull)action OBJC_DESIGNATED_INITIALIZER; @property (nonatomic, readonly, strong) UIImage * _Nullable image; @property (nonatomic, readonly, copy) NSString * _Nullable title; @property (nonatomic, readonly) SEL _Nullable action; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end @class NENavigationView; SWIFT_CLASS("_TtC13NECommonUIKit20NEBaseViewController") @interface NEBaseViewController : UIViewController @property (nonatomic) CGFloat topConstant; @property (nonatomic, readonly, strong) NENavigationView * _Nonnull navigationView; @property (nonatomic, copy) NSString * _Nullable title; - (void)viewDidLoad; - (void)backEvent; - (void)addLeftSwipeDismissGesture; - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end @class UITableView; SWIFT_CLASS("_TtC13NECommonUIKit25NEBaseTableViewController") @interface NEBaseTableViewController : NEBaseViewController @property (nonatomic, strong) UITableView * _Nonnull tableView; - (void)viewDidLoad; - (void)setupTable; - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end @class UIImageView; SWIFT_CLASS("_TtC13NECommonUIKit19NEBrokenNetworkView") @interface NEBrokenNetworkView : UIView - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @property (nonatomic, strong) UIImageView * _Nonnull errorIcon; @property (nonatomic, strong) UILabel * _Nonnull content; @end @class NECustomAlertAction; SWIFT_CLASS("_TtC13NECommonUIKit29NECustomActionSheetController") @interface NECustomActionSheetController : UIViewController @property (nonatomic, strong) NECustomAlertAction * _Nonnull cancelAction; @property (nonatomic, strong) UIView * _Nonnull boldDividerLine; - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE; - (void)viewDidLoad; - (void)addAction:(NECustomAlertAction * _Nonnull)action :(CGFloat)actionHeight; @end SWIFT_CLASS("_TtC13NECommonUIKit19NECustomAlertAction") @interface NECustomAlertAction : UIView - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; - (void)drawRect:(CGRect)rect; - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; @end SWIFT_CLASS("_TtC13NECommonUIKit15NEEmptyDataView") @interface NEEmptyDataView : UIView @property (nonatomic, strong) NSLayoutConstraint * _Nullable widthConstraint; @property (nonatomic, strong) NSLayoutConstraint * _Nullable heightConstraint; - (nonnull instancetype)initWithImageName:(NSString * _Nonnull)imageName content:(NSString * _Nonnull)content frame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)initWithImage:(UIImage * _Nullable)image content:(NSString * _Nonnull)content frame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @property (nonatomic, strong) UIImageView * _Nonnull emptyImageView; - (void)settingContentWithContent:(NSString * _Nonnull)content; - (void)setEmptyImageWithName:(NSString * _Nonnull)name; - (void)setEmptyImageWithImage:(UIImage * _Nullable)image; - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; @end /// IQEnableModeDefault /// Pick default settings. /// IQEnableModeEnabled /// setting is enabled. /// IQEnableModeDisabled /// setting is disabled. typedef SWIFT_ENUM(NSInteger, NEEnableMode, open) { NEEnableModeDefault = 0, NEEnableModeEnabled = 1, NEEnableModeDisabled = 2, }; SWIFT_CLASS("_TtC13NECommonUIKit12NEInvocation") SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NEInvocation : NSObject @property (nonatomic, weak) id _Nullable target; @property (nonatomic) SEL _Nonnull action; - (nonnull instancetype)init:(id _Nonnull)target :(SEL _Nonnull)action OBJC_DESIGNATED_INITIALIZER; - (void)invokeFrom:(id _Nonnull)from; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end @class UIFont; @class UITapGestureRecognizer; /// Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView. Neither need to write any code nor any setup required and much more. A generic version of KeyboardManagement. https://developer.apple.com/library/ios/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html SWIFT_CLASS("_TtC13NECommonUIKit17NEKeyboardManager") SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NEKeyboardManager : NSObject /// Returns the default singleton instance. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NEKeyboardManager * _Nonnull shared;) + (NEKeyboardManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; /// Enable/disable managing distance between keyboard and textField. Default is YES(Enabled when class loads in +(void)load method). @property (nonatomic) BOOL enable; /// To set keyboard distance from textField. can’t be less than zero. Default is 10.0. @property (nonatomic) CGFloat keyboardDistanceFromTextField; /// Automatic add the NEToolbar functionality. Default is YES. @property (nonatomic) BOOL enableAutoToolbar; /// /** /// IQAutoToolbarBySubviews: Creates Toolbar according to subview’s hirarchy of Textfield’s in view. /// IQAutoToolbarByTag: Creates Toolbar according to tag property of TextField’s. /// IQAutoToolbarByPosition: Creates Toolbar according to the y,x position of textField in it’s superview coordinate. /// Default is IQAutoToolbarBySubviews. /// */ /// AutoToolbar managing behaviour. Default is IQAutoToolbarBySubviews. @property (nonatomic) enum IQAutoToolbarManageBehaviour toolbarManageBehaviour; /// If YES, then uses textField’s tintColor property for NEToolbar, otherwise tint color is default. Default is NO. @property (nonatomic) BOOL shouldToolbarUsesTextFieldTintColor; /// This is used for toolbar.tintColor when textfield.keyboardAppearance is UIKeyboardAppearanceDefault. If shouldToolbarUsesTextFieldTintColor is YES then this property is ignored. Default is nil and uses black color. @property (nonatomic, strong) UIColor * _Nullable toolbarTintColor; /// This is used for toolbar.barTintColor. Default is nil. @property (nonatomic, strong) UIColor * _Nullable toolbarBarTintColor; /// IQPreviousNextDisplayModeDefault: Show NextPrevious when there are more than 1 textField otherwise hide. /// IQPreviousNextDisplayModeAlwaysHide: Do not show NextPrevious buttons in any case. /// IQPreviousNextDisplayModeAlwaysShow: Always show nextPrevious buttons, if there are more than 1 textField then both buttons will be visible but will be shown as disabled. @property (nonatomic) enum IQPreviousNextDisplayMode previousNextDisplayMode; /// Toolbar previous/next/done button icon, If nothing is provided then check toolbarDoneBarButtonItemText to draw done button. @property (nonatomic, strong) UIImage * _Nullable toolbarPreviousBarButtonItemImage; @property (nonatomic, strong) UIImage * _Nullable toolbarNextBarButtonItemImage; @property (nonatomic, strong) UIImage * _Nullable toolbarDoneBarButtonItemImage; /// Toolbar previous/next/done button text, If nothing is provided then system default ‘UIBarButtonSystemItemDone’ will be used. @property (nonatomic, copy) NSString * _Nullable toolbarPreviousBarButtonItemText; @property (nonatomic, copy) NSString * _Nullable toolbarPreviousBarButtonItemAccessibilityLabel; @property (nonatomic, copy) NSString * _Nullable toolbarNextBarButtonItemText; @property (nonatomic, copy) NSString * _Nullable toolbarNextBarButtonItemAccessibilityLabel; @property (nonatomic, copy) NSString * _Nullable toolbarDoneBarButtonItemText; @property (nonatomic, copy) NSString * _Nullable toolbarDoneBarButtonItemAccessibilityLabel; /// If YES, then it add the textField’s placeholder text on NEToolbar. Default is YES. @property (nonatomic) BOOL shouldShowToolbarPlaceholder; /// Placeholder Font. Default is nil. @property (nonatomic, strong) UIFont * _Nullable placeholderFont; /// Placeholder Color. Default is nil. Which means lightGray @property (nonatomic, strong) UIColor * _Nullable placeholderColor; /// Placeholder Button Color when it’s treated as button. Default is nil. @property (nonatomic, strong) UIColor * _Nullable placeholderButtonColor; /// Override the keyboardAppearance for all textField/textView. Default is NO. @property (nonatomic) BOOL overrideKeyboardAppearance; /// If overrideKeyboardAppearance is YES, then all the textField keyboardAppearance is set using this property. @property (nonatomic) UIKeyboardAppearance keyboardAppearance; /// Resigns Keyboard on touching outside of UITextField/View. Default is NO. @property (nonatomic) BOOL shouldResignOnTouchOutside; /// TapGesture to resign keyboard on view’s touch. It’s a readonly property and exposed only for adding/removing dependencies if your added gesture does have collision with this one @property (nonatomic, strong) UITapGestureRecognizer * _Nonnull resignFirstResponderGesture; /// Resigns currently first responder field. - (BOOL)resignFirstResponder; /// If YES, then it plays inputClick sound on next/previous/done click. @property (nonatomic) BOOL shouldPlayInputClicks; /// If YES, then calls ‘setNeedsLayout’ and ‘layoutIfNeeded’ on any frame update of to viewController’s view. @property (nonatomic) BOOL layoutIfNeededOnUpdate; /// Disable distance handling within the scope of disabled distance handling viewControllers classes. Within this scope, ‘enabled’ property is ignored. Class should be kind of UIViewController. @property (nonatomic, copy) NSArray * _Nonnull disabledDistanceHandlingClasses; /// Enable distance handling within the scope of enabled distance handling viewControllers classes. Within this scope, ‘enabled’ property is ignored. Class should be kind of UIViewController. If same Class is added in disabledDistanceHandlingClasses list, then enabledDistanceHandlingClasses will be ignored. @property (nonatomic, copy) NSArray * _Nonnull enabledDistanceHandlingClasses; /// Disable automatic toolbar creation within the scope of disabled toolbar viewControllers classes. Within this scope, ‘enableAutoToolbar’ property is ignored. Class should be kind of UIViewController. @property (nonatomic, copy) NSArray * _Nonnull disabledToolbarClasses; /// Enable automatic toolbar creation within the scope of enabled toolbar viewControllers classes. Within this scope, ‘enableAutoToolbar’ property is ignored. Class should be kind of UIViewController. If same Class is added in disabledToolbarClasses list, then enabledToolbarClasses will be ignore. @property (nonatomic, copy) NSArray * _Nonnull enabledToolbarClasses; /// Allowed subclasses of UIView to add all inner textField, this will allow to navigate between textField contains in different superview. Class should be kind of UIView. @property (nonatomic, copy) NSArray * _Nonnull toolbarPreviousNextAllowedClasses; /// Disabled classes to ignore ‘shouldResignOnTouchOutside’ property, Class should be kind of UIViewController. @property (nonatomic, copy) NSArray * _Nonnull disabledTouchResignedClasses; /// Enabled classes to forcefully enable ‘shouldResignOnTouchOutsite’ property. Class should be kind of UIViewController. If same Class is added in disabledTouchResignedClasses list, then enabledTouchResignedClasses will be ignored. @property (nonatomic, copy) NSArray * _Nonnull enabledTouchResignedClasses; /// if shouldResignOnTouchOutside is enabled then you can customise the behaviour to not recognise gesture touches on some specific view subclasses. Class should be kind of UIView. Default is [UIControl, UINavigationBar] @property (nonatomic, copy) NSArray * _Nonnull touchResignedGestureIgnoreClasses; /// Add/Remove customised Notification for third party customised TextField/TextView. Please be aware that the Notification object must be idential to UITextField/UITextView Notification objects and customised TextField/TextView support must be idential to UITextField/UITextView. /// @param didBeginEditingNotificationName This should be identical to UITextViewTextDidBeginEditingNotification /// @param didEndEditingNotificationName This should be identical to UITextViewTextDidEndEditingNotification - (void)registerTextFieldViewClass:(SWIFT_METATYPE(UIView) _Nonnull)aClass didBeginEditingNotificationName:(NSString * _Nonnull)didBeginEditingNotificationName didEndEditingNotificationName:(NSString * _Nonnull)didEndEditingNotificationName; - (void)unregisterTextFieldViewClass:(SWIFT_METATYPE(UIView) _Nonnull)aClass didBeginEditingNotificationName:(NSString * _Nonnull)didBeginEditingNotificationName didEndEditingNotificationName:(NSString * _Nonnull)didEndEditingNotificationName; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); - (void)reloadLayoutIfNeeded; @end @class UIGestureRecognizer; @class UITouch; SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NEKeyboardManager (SWIFT_EXTENSION(NECommonUIKit)) /// Note: returning YES is guaranteed to allow simultaneous recognition. returning NO is not guaranteed to prevent simultaneous recognition, as the other gesture’s delegate may return YES. - (BOOL)gestureRecognizer:(UIGestureRecognizer * _Nonnull)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer * _Nonnull)otherGestureRecognizer SWIFT_WARN_UNUSED_RESULT; /// To not detect touch events in a subclass of UIControl, these may have added their own selector for specific work - (BOOL)gestureRecognizer:(UIGestureRecognizer * _Nonnull)gestureRecognizer shouldReceiveTouch:(UITouch * _Nonnull)touch SWIFT_WARN_UNUSED_RESULT; @end SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NEKeyboardManager (SWIFT_EXTENSION(NECommonUIKit)) @property (nonatomic) BOOL enableDebugging; /// @warning Use below methods to completely enable/disable notifications registered by library internally. /// Please keep in mind that library is totally dependent on NSNotification of UITextField, UITextField, Keyboard etc. /// If you do unregisterAllNotifications then library will not work at all. You should only use below methods if you want to completedly disable all library functions. /// You should use below methods at your own risk. - (void)registerAllNotifications; - (void)unregisterAllNotifications; @end SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NEKeyboardManager (SWIFT_EXTENSION(NECommonUIKit)) /// reloadInputViews to reload toolbar buttons enable/disable state on the fly Enhancement ID #434. - (void)reloadInputViews; @end SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NEKeyboardManager (SWIFT_EXTENSION(NECommonUIKit)) /// Returns YES if can navigate to previous responder textField/textView, otherwise NO. @property (nonatomic, readonly) BOOL canGoPrevious; /// Returns YES if can navigate to next responder textField/textView, otherwise NO. @property (nonatomic, readonly) BOOL canGoNext; /// Navigate to previous responder textField/textView. - (BOOL)goPrevious; /// Navigate to next responder textField/textView. - (BOOL)goNext; @end SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NEKeyboardManager (SWIFT_EXTENSION(NECommonUIKit)) /// Boolean to know if keyboard is showing. @property (nonatomic, readonly) BOOL keyboardShowing; @end SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NEKeyboardManager (SWIFT_EXTENSION(NECommonUIKit)) /// moved distance to the top used to maintain distance between keyboard and textField. Most of the time this will be a positive value. @property (nonatomic, readonly) CGFloat movedDistance; /// Will be called then movedDistance will be changed @property (nonatomic, copy) void (^ _Nullable movedDistanceChanged)(CGFloat); @end SWIFT_CLASS("_TtC13NECommonUIKit16NENavigationView") @interface NENavigationView : UIView @property (nonatomic) CGFloat bottomMargin; @property (nonatomic) CGFloat leftMargin; @property (nonatomic) double titleBarBottomLineHeight; @property (nonatomic, strong) UIButton * _Nonnull backButton; @property (nonatomic, strong) UILabel * _Nonnull navTitle; @property (nonatomic, strong) UIButton * _Nonnull moreButton; @property (nonatomic, strong) UIView * _Nonnull titleBarView; @property (nonatomic, strong) UIView * _Nonnull titleBarBottomLine; - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; - (void)setBackButtonTitle:(NSString * _Nonnull)title; - (void)setBackButtonImage:(UIImage * _Nullable)image; - (void)addBackButtonTargetWithTarget:(id _Nullable)target selector:(SEL _Nonnull)selector; - (void)setMoreButtonTitle:(NSString * _Nonnull)title; - (void)setMoreButtonImage:(UIImage * _Nullable)image; - (void)addMoreButtonTargetWithTarget:(id _Nullable)target selector:(SEL _Nonnull)selector; @end SWIFT_CLASS("_TtC13NECommonUIKit18NEOverlayFocusView") @interface NEOverlayFocusView : UIView - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE; - (void)layoutSubviews; @end /// A NEPagingMenuViewCell object presents the content for a single menu item when that item is within the paging menu view’s visible bounds. /// You can use this class as-is or subclass it to add additional properties and methods. The layout and presentation of cells is managed by the paging menu view. SWIFT_CLASS("_TtC13NECommonUIKit20NEPagingMenuViewCell") @interface NEPagingMenuViewCell : UIView - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end SWIFT_CLASS("_TtC13NECommonUIKit17NEOverlayMenuCell") @interface NEOverlayMenuCell : NEPagingMenuViewCell - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE; - (void)layoutSubviews; @end @protocol UIViewControllerTransitionCoordinator; /// A view controller that lets the user navigate between pages of content, where each page is managed by its own view controller object. SWIFT_CLASS("_TtC13NECommonUIKit29NEPagingContentViewController") @interface NEPagingContentViewController : UIViewController - (void)viewDidLoad; - (void)viewWillAppear:(BOOL)animated; - (void)viewDidAppear:(BOOL)animated; - (void)viewWillDisappear:(BOOL)animated; - (void)viewDidDisappear:(BOOL)animated; - (void)viewDidLayoutSubviews; - (void)didReceiveMemoryWarning; - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id _Nonnull)coordinator; @property (nonatomic, readonly) BOOL shouldAutomaticallyForwardAppearanceMethods; - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end @class UIScrollView; @interface NEPagingContentViewController (SWIFT_EXTENSION(NECommonUIKit)) - (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView; - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView; - (void)scrollViewWillBeginDecelerating:(UIScrollView * _Nonnull)scrollView; - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView; - (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate; @end /// A view controller that presents menu using cells arranged in a single column. SWIFT_CLASS("_TtC13NECommonUIKit26NEPagingMenuViewController") @interface NEPagingMenuViewController : UIViewController - (void)viewDidLoad; - (void)viewDidLayoutSubviews; - (void)didReceiveMemoryWarning; - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id _Nonnull)coordinator; - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end @interface NEPagingMenuViewController (SWIFT_EXTENSION(NECommonUIKit)) - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView; - (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate; @end SWIFT_CLASS("_TtC13NECommonUIKit18NEPreviousNextView") SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NEPreviousNextView : UIView - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end @class NSTextContainer; @class NSAttributedString; /// @abstract UITextView with placeholder support SWIFT_CLASS("_TtC13NECommonUIKit10NETextView") SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NETextView : UITextView - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)initWithFrame:(CGRect)frame textContainer:(NSTextContainer * _Nullable)textContainer OBJC_DESIGNATED_INITIALIZER; - (void)awakeFromNib; /// @abstract To set textView’s placeholder text color. @property (nonatomic, strong) IBInspectable UIColor * _Nullable placeholderTextColor; /// @abstract To set textView’s placeholder text. Default is nil. @property (nonatomic, copy) IBInspectable NSString * _Nullable placeholder; - (void)layoutSubviews; @property (nonatomic, copy) NSString * _Null_unspecified text; @property (nonatomic, strong) NSAttributedString * _Null_unspecified attributedText; @property (nonatomic, strong) UIFont * _Nullable font; @property (nonatomic) NSTextAlignment textAlignment; @property (nonatomic, weak) id _Nullable delegate; @property (nonatomic, readonly) CGSize intrinsicContentSize; @end SWIFT_CLASS("_TtC13NECommonUIKit20NETitleBarButtonItem") SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NETitleBarButtonItem : NEBarButtonItem @property (nonatomic, strong) UIFont * _Nullable titleFont; @property (nonatomic, copy) NSString * _Nullable title; /// titleColor to be used for displaying button text when displaying title (disabled state). @property (nonatomic, strong) UIColor * _Nullable titleColor; /// selectableTitleColor to be used for displaying button text when button is enabled. @property (nonatomic, strong) UIColor * _Nullable selectableTitleColor; /// Customized Invocation to be called on title button action. titleInvocation is internally created using setTitleTarget:action: method. @property (nonatomic, strong) NEInvocation * _Nullable invocation; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); - (nonnull instancetype)initWithTitle:(NSString * _Nullable)title; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; @end /// Basic style of cell ///
    ///
  • /// center text ///
  • ///
  • /// emphasize text to focus color ///
  • ///
SWIFT_CLASS("_TtC13NECommonUIKit24NETitleLabelMenuViewCell") @interface NETitleLabelMenuViewCell : NEPagingMenuViewCell - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; @end /// @abstract NEToolbar for IQKeyboardManager. SWIFT_CLASS("_TtC13NECommonUIKit9NEToolbar") SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface NEToolbar : UIToolbar @property (nonatomic, strong) NEBarButtonItem * _Nonnull previousBarButton; @property (nonatomic, strong) NEBarButtonItem * _Nonnull nextBarButton; @property (nonatomic, strong) NETitleBarButtonItem * _Nonnull titleBarButton; @property (nonatomic, strong) NEBarButtonItem * _Nonnull doneBarButton; @property (nonatomic, strong) NEBarButtonItem * _Nonnull fixedSpaceBarButton; - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; - (CGSize)sizeThatFits:(CGSize)size SWIFT_WARN_UNUSED_RESULT; @property (nonatomic, strong) UIColor * _Null_unspecified tintColor; - (void)layoutSubviews; @property (nonatomic, readonly) BOOL enableInputClicksWhenVisible; @end /// Basic style of focus view ///
    ///
  • /// underline height ///
  • ///
  • /// underline color ///
  • ///
SWIFT_CLASS("_TtC13NECommonUIKit20NEUnderlineFocusView") @interface NEUnderlineFocusView : UIView - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; @end SWIFT_CLASS("_TtC13NECommonUIKit16NEUserHeaderView") @interface NEUserHeaderView : UIImageView @property (nonatomic, strong) UILabel * _Nonnull titleLabel; - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; - (void)configHeadDataWithHeadUrl:(NSString * _Nullable)headUrl name:(NSString * _Nonnull)name uid:(NSString * _Nonnull)uid; - (void)setTitle:(NSString * _Nonnull)name; - (nonnull instancetype)initWithImage:(UIImage * _Nullable)image SWIFT_UNAVAILABLE; - (nonnull instancetype)initWithImage:(UIImage * _Nullable)image highlightedImage:(UIImage * _Nullable)highlightedImage SWIFT_UNAVAILABLE; @end /// A view that focus menu corresponding to current page. SWIFT_CLASS("_TtC13NECommonUIKit19PagingMenuFocusView") @interface PagingMenuFocusView : UIView - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; @end /// Displays menu lists of information and supports selection and paging of the information. SWIFT_CLASS("_TtC13NECommonUIKit14PagingMenuView") @interface PagingMenuView : UIScrollView - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; - (void)observeValueForKeyPath:(NSString * _Nullable)keyPath ofObject:(id _Nullable)object change:(NSDictionary * _Nullable)change context:(void * _Nullable)context; - (void)layoutSubviews; - (void)safeAreaInsetsDidChange SWIFT_AVAILABILITY(ios,introduced=11.0); @end @interface PagingMenuView (SWIFT_EXTENSION(NECommonUIKit)) - (void)touchesBegan:(NSSet * _Nonnull)touches withEvent:(UIEvent * _Nullable)event; - (void)touchesEnded:(NSSet * _Nonnull)touches withEvent:(UIEvent * _Nullable)event; - (void)touchesCancelled:(NSSet * _Nonnull)touches withEvent:(UIEvent * _Nullable)event; @end SWIFT_CLASS("_TtC13NECommonUIKit26PhotoBrowserBigImgBackView") @interface PhotoBrowserBigImgBackView : UIView - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; @end @class CAAnimation; @interface PhotoBrowserBigImgBackView (SWIFT_EXTENSION(NECommonUIKit)) - (void)animationDidStop:(CAAnimation * _Nonnull)anim finished:(BOOL)flag; @end @class UICollectionView; @class NSIndexPath; @class UICollectionViewCell; @interface PhotoBrowserBigImgBackView (SWIFT_EXTENSION(NECommonUIKit)) - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView; @end SWIFT_CLASS("_TtC13NECommonUIKit16PhotoBrowserCell") @interface PhotoBrowserCell : UICollectionViewCell - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end @interface PhotoBrowserCell (SWIFT_EXTENSION(NECommonUIKit)) - (UIView * _Nullable)viewForZoomingInScrollView:(UIScrollView * _Nonnull)scrollView SWIFT_WARN_UNUSED_RESULT; - (void)scrollViewDidEndZooming:(UIScrollView * _Nonnull)scrollView withView:(UIView * _Nullable)view atScale:(CGFloat)scale; - (void)scrollViewWillBeginZooming:(UIScrollView * _Nonnull)scrollView withView:(UIView * _Nullable)view; - (void)scrollViewDidZoom:(UIScrollView * _Nonnull)scrollView; - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView; @end @interface PhotoBrowserCell (SWIFT_EXTENSION(NECommonUIKit)) - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer * _Nonnull)gestureRecognizer SWIFT_WARN_UNUSED_RESULT; @end @class ToastImageView; SWIFT_CLASS("_TtC13NECommonUIKit22PhotoBrowserController") @interface PhotoBrowserController : UIViewController @property (nonatomic, strong) BrowserToolsBar * _Nonnull toolsBar; @property (nonatomic, strong) ToastImageView * _Nonnull successView; - (nonnull instancetype)initWithImgs:(NSArray * _Nonnull)imgs img:(UIImage * _Nonnull)img OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)initWithUrls:(NSArray * _Nonnull)urls url:(NSString * _Nonnull)url OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; - (void)viewDidLoad; - (void)viewWillAppear:(BOOL)animated; - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE; @end @interface PhotoBrowserController (SWIFT_EXTENSION(NECommonUIKit)) - (void)didCloseClick; - (void)didPhotoClick; - (void)didSaveClick; @end SWIFT_CLASS("_TtC13NECommonUIKit22PhotoBrowserFlowLayout") @interface PhotoBrowserFlowLayout : UICollectionViewFlowLayout @property (nonatomic) CGPoint lastOffset; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; - (void)prepareLayout; @end @interface PhotoBrowserFlowLayout (SWIFT_EXTENSION(NECommonUIKit)) /// 这个方法的返回值,就决定了collectionView停止滚动时的偏移量 - (CGPoint)targetContentOffsetForProposedContentOffset:(CGPoint)proposedContentOffset withScrollingVelocity:(CGPoint)velocity SWIFT_WARN_UNUSED_RESULT; @end enum PopoverType : NSInteger; @class UIBlurEffect; @class UIControl; SWIFT_CLASS("_TtC13NECommonUIKit7Popover") @interface Popover : UIView @property (nonatomic) CGSize arrowSize; @property (nonatomic) NSTimeInterval animationIn; @property (nonatomic) NSTimeInterval animationOut; @property (nonatomic) CGFloat cornerRadius; @property (nonatomic) CGFloat sideEdge; @property (nonatomic) enum PopoverType popoverType; @property (nonatomic, strong) UIColor * _Nonnull blackOverlayColor; @property (nonatomic, strong) UIBlurEffect * _Nullable overlayBlur; @property (nonatomic, strong) UIColor * _Nonnull popoverColor; @property (nonatomic) BOOL dismissOnBlackOverlayTap; @property (nonatomic) BOOL showBlackOverlay; @property (nonatomic) BOOL highlightFromView; @property (nonatomic) CGFloat highlightCornerRadius; @property (nonatomic) CGFloat springDamping; @property (nonatomic) CGFloat initialSpringVelocity; @property (nonatomic) CGFloat sideOffset; @property (nonatomic, strong) UIColor * _Nullable borderColor; @property (nonatomic, copy) void (^ _Nullable willShowHandler)(void); @property (nonatomic, copy) void (^ _Nullable willDismissHandler)(void); @property (nonatomic, copy) void (^ _Nullable didShowHandler)(void); @property (nonatomic, copy) void (^ _Nullable didDismissHandler)(void); @property (nonatomic, readonly, strong) UIControl * _Nonnull blackOverlay; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)initWithShowHandler:(void (^ _Nullable)(void))showHandler dismissHandler:(void (^ _Nullable)(void))dismissHandler OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; - (void)layoutSubviews; - (void)showAsDialog:(UIView * _Nonnull)contentView; - (void)showAsDialog:(UIView * _Nonnull)contentView inView:(UIView * _Nonnull)inView; - (void)show:(UIView * _Nonnull)contentView fromView:(UIView * _Nonnull)fromView; - (void)show:(UIView * _Nonnull)contentView fromView:(UIView * _Nonnull)fromView inView:(UIView * _Nonnull)inView; - (void)show:(UIView * _Nonnull)contentView point:(CGPoint)point; - (void)show:(UIView * _Nonnull)contentView point:(CGPoint)point inView:(UIView * _Nonnull)inView; - (BOOL)accessibilityPerformEscape SWIFT_WARN_UNUSED_RESULT; - (void)dismiss; - (void)drawRect:(CGRect)rect; - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; @end typedef SWIFT_ENUM(NSInteger, PopoverType, open) { PopoverTypeUp = 0, PopoverTypeDown = 1, PopoverTypeLeft = 2, PopoverTypeRight = 3, PopoverTypeAuto = 4, }; SWIFT_CLASS("_TtC13NECommonUIKit13RedAngleLabel") @interface RedAngleLabel : UILabel @property (nonatomic) UIEdgeInsets textInsets; - (void)drawTextInRect:(CGRect)rect; - (CGRect)textRectForBounds:(CGRect)bounds limitedToNumberOfLines:(NSInteger)numberOfLines SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end SWIFT_CLASS("_TtC13NECommonUIKit15SearchTextField") @interface SearchTextField : UITextField - (CGRect)leftViewRectForBounds:(CGRect)bounds SWIFT_WARN_UNUSED_RESULT; - (CGRect)placeholderRectForBounds:(CGRect)bounds SWIFT_WARN_UNUSED_RESULT; - (CGRect)editingRectForBounds:(CGRect)bounds SWIFT_WARN_UNUSED_RESULT; - (CGRect)textRectForBounds:(CGRect)bounds SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end @protocol TabNavigationViewDelegate; SWIFT_CLASS("_TtC13NECommonUIKit17TabNavigationView") @interface TabNavigationView : UIView @property (nonatomic, weak) id _Nullable delegate; @property (nonatomic) double titleBarBottomLineHeight; - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; - (void)setupSubviews; @property (nonatomic, strong) UIButton * _Nonnull brandBtn; @property (nonatomic, strong) UILabel * _Nonnull navigationTitle; @property (nonatomic, strong) UIButton * _Nonnull searchBtn; @property (nonatomic, strong) ExpandButton * _Nonnull addBtn; @property (nonatomic, strong) UIView * _Nonnull titleBarView; @property (nonatomic, strong) UIView * _Nonnull titleBarBottomLine; @end @interface TabNavigationView (SWIFT_EXTENSION(NECommonUIKit)) - (void)searchBtnClickWithSender:(UIButton * _Nonnull)sender; - (void)addBtnClickWithSender:(UIButton * _Nonnull)sender; @end SWIFT_PROTOCOL("_TtP13NECommonUIKit25TabNavigationViewDelegate_") @protocol TabNavigationViewDelegate - (void)didClickAddBtn; - (void)searchAction; @end SWIFT_CLASS("_TtC13NECommonUIKit12TextBaseCell") @interface TextBaseCell : UITableViewCell @property (nonatomic, strong) NSLayoutConstraint * _Nullable titleLabelTopAnchor; @property (nonatomic, strong) NSLayoutConstraint * _Nullable titleLabelCenterYAnchor; - (void)awakeFromNib; - (void)setSelected:(BOOL)selected animated:(BOOL)animated; - (nonnull instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString * _Nullable)reuseIdentifier OBJC_DESIGNATED_INITIALIZER; - (void)setupSubviews; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @property (nonatomic, strong) NEUserHeaderView * _Nonnull headImge; @property (nonatomic, strong) UILabel * _Nonnull titleLabel; @property (nonatomic, strong) UILabel * _Nonnull subTitleLabel; @end SWIFT_CLASS("_TtC13NECommonUIKit14ToastImageView") @interface ToastImageView : UIView @property (nonatomic, strong) UIImageView * _Nonnull imageView; @property (nonatomic, strong) UILabel * _Nonnull contentLabel; - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface UIImage (SWIFT_EXTENSION(NECommonUIKit)) + (UIImage * _Nullable)keyboardLeftImage SWIFT_WARN_UNUSED_RESULT; + (UIImage * _Nullable)keyboardRightImage SWIFT_WARN_UNUSED_RESULT; + (UIImage * _Nullable)keyboardUpImage SWIFT_WARN_UNUSED_RESULT; + (UIImage * _Nullable)keyboardDownImage SWIFT_WARN_UNUSED_RESULT; + (UIImage * _Nullable)keyboardPreviousImage SWIFT_WARN_UNUSED_RESULT; + (UIImage * _Nullable)keyboardNextImage SWIFT_WARN_UNUSED_RESULT; @end SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface UIScrollView (SWIFT_EXTENSION(NECommonUIKit)) /// If YES, then scrollview will ignore scrolling (simply not scroll it) for adjusting textfield position. Default is NO. @property (nonatomic) BOOL shouldIgnoreScrollingAdjustment; /// If YES, then scrollview will ignore content inset adjustment (simply not updating it) when keyboard is shown. Default is NO. @property (nonatomic) BOOL shouldIgnoreContentInsetAdjustment; /// To set customized distance from keyboard for textField/textView. Can’t be less than zero @property (nonatomic) BOOL shouldRestoreScrollViewContentOffset; @end SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface UIView (SWIFT_EXTENSION(NECommonUIKit)) /// To set customized distance from keyboard for textField/textView. Can’t be less than zero @property (nonatomic) CGFloat keyboardDistanceFromTextField; /// If shouldIgnoreSwitchingByNextPrevious is true then library will ignore this textField/textView while moving to other textField/textView using keyboard toolbar next previous buttons. Default is false @property (nonatomic) BOOL ignoreSwitchingByNextPrevious; /// Override Enable/disable managing distance between keyboard and textField behaviour for this particular textField. @property (nonatomic) enum NEEnableMode enableMode; /// Override resigns Keyboard on touching outside of UITextField/View behaviour for this particular textField. @property (nonatomic) enum NEEnableMode shouldResignOnTouchOutsideMode; @end SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface UIView (SWIFT_EXTENSION(NECommonUIKit)) /// Returns the UIViewController object that manages the receiver. - (UIViewController * _Nullable)viewContainingController SWIFT_WARN_UNUSED_RESULT; /// Returns the topMost UIViewController object in hierarchy. - (UIViewController * _Nullable)topMostController SWIFT_WARN_UNUSED_RESULT; /// Returns the UIViewController object that is actually the parent of this object. Most of the time it’s the viewController object which actually contains it, but result may be different if it’s viewController is added as childViewController of another viewController. - (UIViewController * _Nullable)parentContainerViewController SWIFT_WARN_UNUSED_RESULT; /// Returns the superView of provided class type. /// @param classType class type of the object which is to be search in above hierarchy and return /// @param belowView view object in upper hierarchy where method should stop searching and return nil - (UIView * _Nullable)superviewOfClassType:(SWIFT_METATYPE(UIView) _Nonnull)classType belowView:(UIView * _Nullable)belowView SWIFT_WARN_UNUSED_RESULT; @end SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface UIView (SWIFT_EXTENSION(NECommonUIKit)) /// NEToolbar references for better customization control. @property (nonatomic, readonly, strong) NEToolbar * _Nonnull keyboardToolbar; /// If shouldHideToolbarPlaceholder is YES, then title will not be added to the toolbar. Default to NO. @property (nonatomic) BOOL shouldHideToolbarPlaceholder; /// toolbarPlaceholder to override default placeholder text when drawing text on toolbar. @property (nonatomic, copy) NSString * _Nullable toolbarPlaceholder; /// drawingToolbarPlaceholder will be actual text used to draw on toolbar. This would either placeholder or toolbarPlaceholder. @property (nonatomic, readonly, copy) NSString * _Nullable drawingToolbarPlaceholder; - (void)addKeyboardToolbarWithTargetWithTarget:(id _Nullable)target titleText:(NSString * _Nullable)titleText rightBarButtonConfiguration:(NEBarButtonItemConfiguration * _Nullable)rightBarButtonConfiguration previousBarButtonConfiguration:(NEBarButtonItemConfiguration * _Nullable)previousBarButtonConfiguration nextBarButtonConfiguration:(NEBarButtonItemConfiguration * _Nullable)nextBarButtonConfiguration; - (void)addDoneOnKeyboardWithTarget:(id _Nullable)target action:(SEL _Nonnull)action shouldShowPlaceholder:(BOOL)shouldShowPlaceholder; - (void)addDoneOnKeyboardWithTarget:(id _Nullable)target action:(SEL _Nonnull)action titleText:(NSString * _Nullable)titleText; - (void)addRightButtonOnKeyboardWithImage:(UIImage * _Nonnull)image target:(id _Nullable)target action:(SEL _Nonnull)action shouldShowPlaceholder:(BOOL)shouldShowPlaceholder; - (void)addRightButtonOnKeyboardWithImage:(UIImage * _Nonnull)image target:(id _Nullable)target action:(SEL _Nonnull)action titleText:(NSString * _Nullable)titleText; - (void)addRightButtonOnKeyboardWithText:(NSString * _Nonnull)text target:(id _Nullable)target action:(SEL _Nonnull)action shouldShowPlaceholder:(BOOL)shouldShowPlaceholder; - (void)addRightButtonOnKeyboardWithText:(NSString * _Nonnull)text target:(id _Nullable)target action:(SEL _Nonnull)action titleText:(NSString * _Nullable)titleText; - (void)addCancelDoneOnKeyboardWithTarget:(id _Nullable)target cancelAction:(SEL _Nonnull)cancelAction doneAction:(SEL _Nonnull)doneAction shouldShowPlaceholder:(BOOL)shouldShowPlaceholder; - (void)addRightLeftOnKeyboardWithTarget:(id _Nullable)target leftButtonTitle:(NSString * _Nonnull)leftButtonTitle rightButtonTitle:(NSString * _Nonnull)rightButtonTitle leftButtonAction:(SEL _Nonnull)leftButtonAction rightButtonAction:(SEL _Nonnull)rightButtonAction shouldShowPlaceholder:(BOOL)shouldShowPlaceholder; - (void)addRightLeftOnKeyboardWithTarget:(id _Nullable)target leftButtonImage:(UIImage * _Nonnull)leftButtonImage rightButtonImage:(UIImage * _Nonnull)rightButtonImage leftButtonAction:(SEL _Nonnull)leftButtonAction rightButtonAction:(SEL _Nonnull)rightButtonAction shouldShowPlaceholder:(BOOL)shouldShowPlaceholder; - (void)addCancelDoneOnKeyboardWithTarget:(id _Nullable)target cancelAction:(SEL _Nonnull)cancelAction doneAction:(SEL _Nonnull)doneAction titleText:(NSString * _Nullable)titleText; - (void)addRightLeftOnKeyboardWithTarget:(id _Nullable)target leftButtonTitle:(NSString * _Nonnull)leftButtonTitle rightButtonTitle:(NSString * _Nonnull)rightButtonTitle leftButtonAction:(SEL _Nonnull)leftButtonAction rightButtonAction:(SEL _Nonnull)rightButtonAction titleText:(NSString * _Nullable)titleText; - (void)addRightLeftOnKeyboardWithTarget:(id _Nullable)target leftButtonImage:(UIImage * _Nonnull)leftButtonImage rightButtonImage:(UIImage * _Nonnull)rightButtonImage leftButtonAction:(SEL _Nonnull)leftButtonAction rightButtonAction:(SEL _Nonnull)rightButtonAction titleText:(NSString * _Nullable)titleText; - (void)addPreviousNextDoneOnKeyboardWithTarget:(id _Nullable)target previousAction:(SEL _Nonnull)previousAction nextAction:(SEL _Nonnull)nextAction doneAction:(SEL _Nonnull)doneAction shouldShowPlaceholder:(BOOL)shouldShowPlaceholder; - (void)addPreviousNextRightOnKeyboardWithTarget:(id _Nullable)target rightButtonImage:(UIImage * _Nonnull)rightButtonImage previousAction:(SEL _Nonnull)previousAction nextAction:(SEL _Nonnull)nextAction rightButtonAction:(SEL _Nonnull)rightButtonAction shouldShowPlaceholder:(BOOL)shouldShowPlaceholder; - (void)addPreviousNextRightOnKeyboardWithTarget:(id _Nullable)target rightButtonTitle:(NSString * _Nonnull)rightButtonTitle previousAction:(SEL _Nonnull)previousAction nextAction:(SEL _Nonnull)nextAction rightButtonAction:(SEL _Nonnull)rightButtonAction shouldShowPlaceholder:(BOOL)shouldShowPlaceholder; - (void)addPreviousNextDoneOnKeyboardWithTarget:(id _Nullable)target previousAction:(SEL _Nonnull)previousAction nextAction:(SEL _Nonnull)nextAction doneAction:(SEL _Nonnull)doneAction titleText:(NSString * _Nullable)titleText; - (void)addPreviousNextRightOnKeyboardWithTarget:(id _Nullable)target rightButtonImage:(UIImage * _Nonnull)rightButtonImage previousAction:(SEL _Nonnull)previousAction nextAction:(SEL _Nonnull)nextAction rightButtonAction:(SEL _Nonnull)rightButtonAction titleText:(NSString * _Nullable)titleText; - (void)addPreviousNextRightOnKeyboardWithTarget:(id _Nullable)target rightButtonTitle:(NSString * _Nonnull)rightButtonTitle previousAction:(SEL _Nonnull)previousAction nextAction:(SEL _Nonnull)nextAction rightButtonAction:(SEL _Nonnull)rightButtonAction titleText:(NSString * _Nullable)titleText; @end SWIFT_AVAILABILITY(ios_app_extension,unavailable) @interface UIViewController (SWIFT_EXTENSION(NECommonUIKit)) /// This method is provided to override by viewController’s if the library lifts a viewController which you doesn’t want to lift . This may happen if you have implemented side menu feature in your app and the library try to lift the side menu controller. Overriding this method in side menu class to return correct controller should fix the problem. - (UIViewController * _Nullable)parentNEContainerViewController SWIFT_WARN_UNUSED_RESULT; /// To set customized distance from keyboard for textField/textView. Can’t be less than zero /// @deprecated Due to change in core-logic of handling distance between textField and keyboard distance, this layout contraint tweak is no longer needed and things will just work out of the box regardless of constraint pinned with safeArea/layoutGuide/superview @property (nonatomic, strong) IBOutlet NSLayoutConstraint * _Nullable NELayoutGuideConstraint SWIFT_DEPRECATED_MSG("Due to change in core-logic of handling distance between textField and keyboard distance, this layout contraint tweak is no longer needed and things will just work out of the box regardless of constraint pinned with safeArea/layoutGuide/superview."); @end @interface UIViewController (SWIFT_EXTENSION(NECommonUIKit)) @end @class VideoToolBar; SWIFT_CLASS("_TtC13NECommonUIKit25VideoPlayerViewController") @interface VideoPlayerViewController : UIViewController @property (nonatomic, copy) NSURL * _Nullable videoUrl; @property (nonatomic, strong) ExpandButton * _Nonnull playBtn; @property (nonatomic, strong) BrowserToolsBar * _Nonnull toolsBar; @property (nonatomic, strong) ToastImageView * _Nonnull successView; @property (nonatomic, strong) VideoToolBar * _Nonnull videoToolBar; - (void)viewDidLoad; - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; @end @interface VideoPlayerViewController (SWIFT_EXTENSION(NECommonUIKit)) - (void)didCloseClick; - (void)didPhotoClick; - (void)didSaveClick; - (void)endPlay; @end typedef SWIFT_ENUM(NSInteger, VideoState, open) { VideoStateVideoPlay = 1, VideoStateVideoDownload = 2, }; SWIFT_CLASS("_TtC13NECommonUIKit14VideoStateView") @interface VideoStateView : UIView @property (nonatomic) enum VideoState state; - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; - (void)setProgress:(float)progress; @end SWIFT_CLASS("_TtC13NECommonUIKit12VideoToolBar") @interface VideoToolBar : UIView - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE; @end #endif #if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) # pragma clang attribute pop #endif #pragma clang diagnostic pop #endif #else #error unsupported Swift architecture #endif