Clean up iOS class declaration (#2462)
* Begin abstraction over UIKit * Clean up UIWindow override declaration * Clean up UIApplication delegate declaration * Clean up UIViewController override declaration * Finalize objc -> objc2 rename
This commit is contained in:
parent
da7bf8e29b
commit
fb248eaadc
14 changed files with 250 additions and 249 deletions
14
src/platform_impl/ios/uikit/view_controller.rs
Normal file
14
src/platform_impl/ios/uikit/view_controller.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use objc2::foundation::NSObject;
|
||||
use objc2::{extern_class, ClassType};
|
||||
|
||||
use super::UIResponder;
|
||||
|
||||
extern_class!(
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
pub(crate) struct UIViewController;
|
||||
|
||||
unsafe impl ClassType for UIViewController {
|
||||
#[inherits(NSObject)]
|
||||
type Super = UIResponder;
|
||||
}
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue