Mobile-UXSDK-iOS icon indicating copy to clipboard operation
Mobile-UXSDK-iOS copied to clipboard

DUXCameraConfigStorageWidget autolayout errors

Open gdavis opened this issue 6 years ago • 2 comments

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

  • DJI UX SDK 4.6
  • DJI UI SDK 4.6.1
  • Xcode 9 or 10
  • Any Device
  • Any iOS

gdavis avatar Jul 09 '18 17:07 gdavis

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

aksh1t avatar Jul 09 '18 17:07 aksh1t

@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.

gdavis avatar Jul 09 '18 18:07 gdavis