objc2_ui_kit/
lib.rs

1//! # Bindings to the `UIKit` framework
2//!
3//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
4//!
5//! [apple-doc]: https://developer.apple.com/documentation/uikit/
6//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
7#![no_std]
8#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))]
9#![cfg_attr(docsrs, feature(doc_cfg))]
10// Update in Cargo.toml as well.
11#![doc(html_root_url = "https://docs.rs/objc2-ui-kit/0.3.2")]
12#![recursion_limit = "256"]
13
14#[cfg(feature = "alloc")]
15extern crate alloc;
16
17#[cfg(feature = "std")]
18extern crate std;
19
20#[cfg(feature = "UIApplication")]
21mod application;
22#[cfg(feature = "UIView")]
23mod coordinate_space;
24mod generated;
25#[cfg(feature = "UIGeometry")]
26mod geometry;
27#[cfg(feature = "UIGestureRecognizer")]
28mod gesture_recognizer;
29#[cfg(feature = "UIImage")]
30mod image;
31#[cfg(feature = "UIPasteConfigurationSupporting")]
32mod paste_configuration;
33#[cfg(feature = "UIResponder")]
34mod responder;
35#[cfg(test)]
36mod tests;
37#[cfg(feature = "NSText")]
38mod text;
39
40#[cfg(feature = "UIView")]
41pub use self::coordinate_space::*;
42#[allow(unused_imports, unreachable_pub)]
43pub use self::generated::*;
44#[cfg(feature = "UIGeometry")]
45pub use self::geometry::*;
46#[cfg(feature = "UIResponder")]
47pub use self::responder::*;
48
49/// (!TARGET_CPU_X86_64 || (TARGET_OS_IPHONE && !TARGET_OS_MACCATALYST))
50///
51/// <https://github.com/xamarin/xamarin-macios/issues/12111>
52#[allow(unused)]
53#[allow(unexpected_cfgs)]
54pub(crate) const TARGET_ABI_USES_IOS_VALUES: bool = !cfg!(target_arch = "x86_64")
55    || (cfg!(all(target_vendor = "apple", not(target_os = "macos")))
56        && !cfg!(target_env = "macabi"));