Preview doesn't fit the screen width
it works well on simulator, on device the preview doesn't fit the screen width and it's anchored to the top, at least on my iPhone 7, iOS 11.0.2
@appcornerit I'm looking into this now. I don't have a iPhone 7 with iOS 11 to test, but I'm downloading the 11.0 sim to see if I can reproduce. Are you having this issue with the example project, or a custom use case?
I have the issue with the example project. Has quick and dirty fix I replaced the constraints in viedDidAppear using snapkit in this way preview!.snp.makeConstraints { (make) -> Void in make.bottom.equalTo(superview.snp.top).offset(view.frame.origin.y-previewBottomMargin) make.top.greaterThanOrEqualTo(superview) make.left.equalTo(superview).offset(view.frame.origin.x) make.right.equalTo(superview).offset(-view.frame.origin.x) } and it works, of course I don't like the workaround applied because of "view.frame.origin".
What version of Xcode are you using? I tried to reproduce this on the iOS 11.0.1 simulator using Xcode 10.1 and it worked fine work me.
I'm using Xcode 10.1 (10B61).
Sorry you're having this issue. Have you made any modifications to the project to get it into this broken state? Can you re-download/re-clone the project and try again?
Since I don't have a device to reproduce, I'm having a hard time figuring out what might be wrong.
Hi, the screenshot was taken from my device using the sample project with no changes. I also had hard time to find a workaround, any constraints referring to the view don't works, it's the reason why in my workaround I use the superview. Thanks for your support, iOS 12 has more than 80% of distribution, it could be an iOS 11.0.2 issue that requires a specific workaround.
Not working in the notch device
hello @mahesh-rideziro. What version of Xcode are you running and what version of iOS are you using?