diff --git a/crates/egui/src/os.rs b/crates/egui/src/os.rs index e7497160..283e3386 100644 --- a/crates/egui/src/os.rs +++ b/crates/egui/src/os.rs @@ -76,4 +76,9 @@ impl OperatingSystem { Self::Unknown } } + + /// Are we either macOS or iOS? + pub fn is_mac(&self) -> bool { + matches!(self, Self::Mac | Self::IOS) + } }