objc2_ui_kit/image.rs
1use crate::{UIImageResizingMode, TARGET_ABI_USES_IOS_VALUES};
2
3#[allow(non_upper_case_globals)]
4#[allow(clippy::bool_to_int_with_if)]
5impl UIImageResizingMode {
6 #[doc(alias = "UIImageResizingModeStretch")]
7 pub const Stretch: Self = Self(if TARGET_ABI_USES_IOS_VALUES { 0 } else { 1 });
8 #[doc(alias = "UIImageResizingModeTile")]
9 pub const Tile: Self = Self(if TARGET_ABI_USES_IOS_VALUES { 1 } else { 0 });
10}