Comments (7)
Thanks for reporting this - our engineers are looking into this now
from mobile-uxsdk-beta-ios.
@zzz2016 - our engineers have some questions:
- What widget are you using?
- Are you trying to add the default view to your view controller? If so, you should use
install(in:)
from mobile-uxsdk-beta-ios.
@zzz2016 - our engineers have some questions:
- What widget are you using?
- Are you trying to add the default view to your view controller? If so, you should use
install(in:)
- topBarWidget
- I did it, but it doesn't work.
from mobile-uxsdk-beta-ios.
public func addRightWidgetArray(_ displayWidgets: [DUXBetaBaseWidget]) {
self.suspendUpdates = true
for aWidget in displayWidgets {
// Build our tracking tuple for each widget so we can associate constraint.
let isVisible = !(aWidget.view?.isHidden ?? true) // The true means isHidden since there is no view
let workTuple : LayoutInfoTuple = (aWidget, isVisible, nil, nil)
allWidgetVisibilities[BarIndex.rightBarIndex.rawValue].append(workTuple)
// Add an abserver to the hidden property so we can handle automatic adjustment when a widget disappears or reappears
aWidget.view?.addObserver(self, forKeyPath: "hidden", options: .new, context: nil)
addChild(aWidget)
// And always have all widgets in the bar, even if invisible.
self.rightBar.addArrangedSubview(aWidget.view)
aWidget.view.layoutIfNeeded()
}
self.suspendUpdates = false
self.updateUI()
}
if i insert a line addChild(aWidget)
, everything will be fine.
from mobile-uxsdk-beta-ios.
@zzz2016 - thanks for your patience and reporting this to us. we are looking into this now
from mobile-uxsdk-beta-ios.
I've been investigating this problem and am unable to reproduce it.
Steps I have tried in our sample app:
- Removing the seque to show the DefaultLayoutViewController
- Adding a IBAction to on the Default Layout button to perform:
a) self.showDetailViewController(DefaultLayoutViewController(), sender: self) // This works as stated
or
b) self.show(DefaultLayoutViewController(), sender: self) // This causes the widget's viewWillAppear to be called . - I added a viewWillAppear to topBarWidget. It is called when self.show(DefaultLayoutViewController(), sender: self)
- I added a logging breakpoint to DUXBetaBatteryWidget which I then instantiated a new copy of and add to the top bar via addLeftWidgetArray([DUXBetaBatteryWidget()])
- The viewWillAppear for the battery widget is called successfully.
If you have any more information on which device/simulator this happens on and which version of iOS/Xcode, I would appreciate it.
from mobile-uxsdk-beta-ios.
@zzz2016 - although the engineer could not reproduce the issue, we have found a potential fix to go out in the next release. Please let us know, if you still have issues after that.
from mobile-uxsdk-beta-ios.
Related Issues (20)
- Sdk HOT 1
- Freezed FPV Widget HOT 2
- Latest DJI SDK 4.14-trial1 is not compatible with latest available Beta UX SDK HOT 1
- pod install can not find UXSDK-beta 0.4 HOT 2
- Possibility to focus the camera HOT 1
- Crash on M600 Pro with Zenmuse X5 HOT 1
- Error during upload app with Beta SDK to AppStore HOT 3
- Extracting PCM Audio data from Files
- How can I access the front camera in Inspire 2?
- SwiftUI and DJI UX SDK 5 (Beta)
- How to get data of these fields from drone? HOT 1
- How to get RTK battery charge cycle count?
- Default layout HOT 6
- Please delete this issue, its not needed anymore!
- How can I change DUXBetaFPVWidget.fpvView.backgroundColor HOT 1
- The video stream is distorted
- Mavic Air 2 no real-time picture display
- DUXBetaBatteryWidget : The value of the remaining power is not updated
- Update dependency to support DJI-SDK-iOS 4.11.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobile-uxsdk-beta-ios.