Fix view frame in portrait when starting iOS app in landscape (#1703)

Co-authored-by: Francesca Lovebloom <francesca@brainiumstudios.com>
This commit is contained in:
Michael Hills 2020-09-23 04:21:07 +10:00 committed by GitHub
parent 71e3d25422
commit c9558c5f0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 5 deletions

View file

@ -29,14 +29,14 @@ pub struct NSOperatingSystemVersion {
}
#[repr(C)]
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct CGPoint {
pub x: CGFloat,
pub y: CGFloat,
}
#[repr(C)]
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct CGSize {
pub width: CGFloat,
pub height: CGFloat,
@ -52,7 +52,7 @@ impl CGSize {
}
#[repr(C)]
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct CGRect {
pub origin: CGPoint,
pub size: CGSize,