Skip to content

Commit

Permalink
Merge pull request #10 from rizerco/master
Browse files Browse the repository at this point in the history
iOS env_logger initialisation
  • Loading branch information
jinleili authored Jul 16, 2024
2 parents 3d79d61 + ec98135 commit 6509b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app-surface/src/ios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ unsafe impl Sync for AppSurface {}
impl AppSurface {
pub fn new(obj: IOSViewObj) -> Self {
// hook up rust logging
env_logger::init();
_ = env_logger::try_init();

let scale_factor = get_scale_factor(obj.view);
let s: CGRect = unsafe { msg_send![obj.view, frame] };
Expand Down

0 comments on commit 6509b00

Please sign in to comment.