Post

Replies

Boosts

Views

Activity

Reply to rotate swiftui preview
As mentioned previously you can set a fixed height and width. However you should not put the pixel size in the fields, but the Point size. Without it you do not take the scale factor into account. for instance: // iPhone X - Px res: 1125 x 2436 - Scale factor: 3.0 #if DEBUG struct ContentView_Previews : PreviewProvider { 		static var previews: some View { 				return ContentView().previewLayout(.fixed(width: 2436 / 3.0, height: 1125 / 3.0)) 		} } #endif ` After some tests, it looks like you have to use the UIKit Scale Factor and not the Native Scale factor for better preview rendering Link - https://developer.apple.com/library/archive/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/Displays/Displays.html to sizes and scale factor
Aug ’20
Reply to Xcode 11 Mac OS Catalina Application file couldn't be opened because you don't have permission to view it
Just solved this answer thanks to this SO post: https://stackoverflow.com/a/63950990/5464805 It looks like at some point of the development my team had to exclude arm64 architectures for the app to work on simulator. The error message is not that helpfull, but removing Excluded Architectures from Build Settings worked for me. Hope this helps
Feb ’21