Merge pull request #85 from rizerco/ios-fix

Partially fixed building for iOS.
This commit is contained in:
Ryan McGrath 2023-06-08 14:42:11 -07:00 committed by GitHub
commit 2f889af736
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,9 +3,13 @@ use objc::runtime::Object;
use objc::{class, msg_send, sel, sel_impl};
use objc_id::ShareId;
#[cfg(feature = "appkit")]
use crate::appkit::toolbar::ToolbarItem;
#[cfg(feature = "appkit")]
use crate::appkit::window::Window;
#[cfg(feature = "appkit")]
use crate::appkit::App;
use crate::foundation::{id, nil, NSString};
use crate::geometry::{Edge, Rect};
use crate::layout::Layout;
@ -84,6 +88,7 @@ impl<Content> Popover<Content> {
}
/// Show the popover relative to the content view of the main window
#[cfg(feature = "appkit")]
pub fn show_popover_main(&self, rect: Rect, edge: Edge) {
let window = App::main_window();
unsafe {