mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 08:55:34 +00:00
23 lines
705 B
Objective-C
23 lines
705 B
Objective-C
//
|
|
// KMKeyboardPickerButton.h
|
|
// Keyman Engine
|
|
//
|
|
// Copyright (c) 2017 SIL International. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@interface KMKeyboardPickerButton : UIButton {
|
|
UIViewController* __weak presentingVC_;
|
|
}
|
|
|
|
// Returns a UIButton that will display the keyboard picker when tapped
|
|
// - since the keyboard picker is modal, a UIViewController must be supplied to display it
|
|
// - the button has a default image and background color
|
|
// - these can be overridden with other images or a title
|
|
+ (KMKeyboardPickerButton *)buttonWithPresentingViewController:(UIViewController *)presentingVC;
|
|
|
|
// Sets the background color of the button
|
|
- (void)setColor:(UIColor *)color;
|
|
|
|
@end
|