1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![cfg(any(target_os = "macos", target_os = "ios"))]
#![allow(clippy::missing_safety_doc, clippy::let_unit_value)]

#[macro_use]
extern crate objc;

use objc::runtime::Object;

pub mod appkit;
pub mod uikit;

pub type CAMetalLayer = *mut Object;

pub enum Layer {
    Existing(CAMetalLayer),
    Allocated(CAMetalLayer),
    None,
}