dji-sdk / Mobile-UXSDK-iOS

DJI Mobile UXSDK is a suite of product agnostic UI objects that fast tracks the development of iOS applications using the DJI Mobile SDK.
Other
73 stars 43 forks source link

DUXCameraConfigStorageWidget autolayout errors #45

Open gdavis opened 6 years ago

gdavis commented 6 years ago

Using DUXCameraConfigStorageWidget with auto-layout constraints and without causes constant autolayout errors when capturing photos or video. This widget should automatically size correctly without triggering auto layout errors.

Steps to reproduce In an Xcode storyboard, place a UIView and give it the custom class DUXCameraConfigStorageWidget. Run the application and have the aircraft record video or photo, and observe the autolayout errors printing in the log and hanging the debugger (if you have a breakpoint set).

[LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSAutoresizingMaskLayoutConstraint:0x1c829fd10 h=&-- v=&-- DUXCameraConfigStorageWidget:0x11be8fd40.width == 197 (active)>", "<NSLayoutConstraint:0x1c8489ab0 DUXCameraConfigStorageWidget:0x11be8fd40.width == 149 (active)>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x1c8489ab0 DUXCameraConfigStorageWidget:0x11be8fd40.width == 149 (active)>

Environment

aksh1t commented 6 years ago

Hi @gdavis, thanks for bringing this up. We've been able to reproduce this issue and it should be fixed with the next update.

gdavis commented 6 years ago

@aksh1t Cool, thanks. Any ETA on when that might be released? Hoping to get it in for an app going to the store this week.