Posts

Post not yet marked as solved
1 Replies
192 Views
I've been trying to animate the OpacityComponent to fade in/out entities in my scene. I've tried animating the component with an AnimationResource as well as tried animating with a custom System. Both worked fine in the simulator, but failed on device. AnimationResource: When I animated the opacity of an entity using an animation with an opacity bind target, the entity would not change opacity until I physically looked away from the object. It's almost as if the device keeps an entity visible for as long as you keep looking at it, but once you look away it plays the animation. System: I created a custom system that manually changes the opacity over time, however, on device the gradual fade of the entity doesn't work. Instead, the entity literally pops in/out of view instead of fading. Can someone explain exactly how this component is supposed to be used? The simulator plays the animations exactly the way I would expect, but on device it's completely different. Edit: I'm trying to change the opacity of entities with a VideoMaterial added to a ModelComponent. The fade animations are performed at certain points in the video that are triggered by an AVPlayer time boundary observer.
Posted Last updated
.
Post not yet marked as solved
6 Replies
2.2k Views
Every time I try using the new URLSessionWebSocketTask I eventually receive an error that crashes my app.Fatal error: Only one of message or error should be nil: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang_overlay_Foundation_Device/swiftlang-1100.2.32.33/swift/stdlib/public/Darwin/Foundation/URLSession.swift, line 46Has anyone experienced this issue? If so, do you know what's causing the problem?Development Setup:macOS 10.14.5 - Xcode 11 betaiPhone 8 Plus - iOS 13 beta
Posted Last updated
.
Post not yet marked as solved
1 Replies
354 Views
I have a popover attached to a button in an iPad app. The location of the popover anchor looks fine at time of presentation, but when I change the orientation of the iPad the anchor becomes detatched from the button and floats somewhere else on the screen.Is this a known bug? Is there a workaround?
Posted Last updated
.
Post not yet marked as solved
0 Replies
453 Views
When I attempt to apply multiple modifiers to a shape, Xcode throws an error letting me know the value does not have that member. e.g.Circle().fill(Color.red).stroke(Color.white, lineWidth: 2)The code above shows the following error:Value of type 'ShapeView<Circle, Color>' has no member 'stroke'It was my impression the power of SwiftUI is it's ability to create custom UI through the use of modifier chains.
Posted Last updated
.