ytakzk / Fusuma

Instagram-like photo browser and a camera feature with a few line of code in Swift.
MIT License
2.46k stars 340 forks source link

Autolayout constraints in landscape not working properly #50

Closed pixelskull closed 8 years ago

pixelskull commented 8 years ago

When device is rotated to landscape the view is not layed out properly. The following images demonstrate the problem on iPhone 5 (4" screen size).

img_1130 img_1132 img_1131

ytakzk commented 8 years ago

@pixelskull Fusuma does not support landscape mode for now.

luisgizirian commented 8 years ago

Appreciate your call. Is it possible to get that behavior fixed at FusumaViewController? Then, for those building apps supporting a mixed set of layouts, it'd be really helpful to enforce the portrait only mode from the controller.

This code should be enough for raw testing.

override public func shouldAutorotate() -> Bool {
    return false
}

override public func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
    return UIInterfaceOrientationMask.Portrait
}

Would you prefer a pull-request? Thanks for the library!