Functions
The following functions are available globally.
-
Returns the scale of the main screen for the current platform. This calls through to KDIScreenScale(), passing nil.
Declaration
Objective-C
extern CGFloat KDIMainScreenScale()Return Value
The scale of the main screen
-
Undocumented
Declaration
Objective-C
FOUNDATION_EXTERN CGFloat KDIScreenScale(UIScreen * _Nullable screen) -
Returns a new size after multiplying the width and height by the main screen scale.
Declaration
Objective-C
extern CGSize KDICGSizeAdjustedForMainScreenScale(CGSize size)Parameters
sizeThe size to adjust
Return Value
The new size
-
Undocumented
Declaration
Objective-C
FOUNDATION_EXTERN CGSize KDICGSizeAdjustedForScreenScale(CGSize size, UIScreen * _Nullable screen) -
Returns the text from the text input.
Declaration
Objective-C
extern NSString *_Nullable KDITextFromTextInput( id<UITextInput> _Nonnull textInput)Parameters
textInputThe text input object
Return Value
The text
-
Returns the selected range from the text input.
Declaration
Objective-C
extern NSRange KDISelectedRangeFromTextInput(id<UITextInput> _Nonnull textInput)Parameters
textInputThe text input object
Return Value
The selected range
-
Returns the text range from text input range.
Declaration
Objective-C
extern UITextRange *_Nonnull KDITextRangeFromTextInputRange( id<UITextInput> _Nonnull textInput, NSRange range)Parameters
textInputThe text input object
rangeThe range
Return Value
The text range
Functions Reference