Post not yet marked as solved
Is there any way how to create shadow in SwiftUI with the spread parameter (means of how much greater the shadow should be than the original view)? I've tried to use custom implementation of shadow using background Color with blur, but it resulted in performance issues.
swift
content
.background(GeometryReader { geometry in
Rectangle()
.fill(color)
.frame(width: geometry.size.width + spread,
height: geometry.size.height + spread)
.cornerRadius(isCircle ? (geometry.size.width + spread) / 2 : cornerRadius)
.padding([.top, .leading], -spread / 2)
.padding(.leading, x)
.padding(.top, y)
.blur(radius: blur)
})
I haven't found any other resources. I think that shadowPath would be helpful using UIKit, but I don't know any way ho to achieve it using SwiftUI.
Thanks for any advice!
Post not yet marked as solved
Hi,
I've tried to authenticate this endpoint https://appstoreconnect.apple.com/iris/v1/betaFeedbacks with the JWT token as described in the documentation, but it's not working. I know this endpoint is not documented, but gathering the beta feedback and being able to extract it to some ticket system (e.g. GitHub board) would be a really helpful option for us.
Does anyone know how we can authenticate this one?
Post not yet marked as solved
Is there a way to animate SCNNode along a given CGPath? It doesn't work with the CAKeyframeAnimation as it works with the CALayer. I mean, using this animation:
let anim = CAKeyframeAnimation(keyPath: "position")
anim.path = CGPath(ellipseIn: CGRect(x: 100, y: 100, width: 300, height: 300), transform: nil)
anim.duration = 5
anim.repeatCount = .infinity
anim.calculationMode = .paced
anim.rotationMode = .rotateAuto
Or is there some workaround to calculate steps from the CGPath?
Post not yet marked as solved
We're creating an augmented exhibition. We have few real objects and want to augment them with panels with text (made in Vectary and exported as .usdz).Since it's not working only by using the Reality composer project with the object anchor, I'm just detecting the object and then place the Reality composer content on the found anchor. Firstly, we had panels with 3D texts, but it caused the app to crash immediately (when adding to the scene) even with only one panel - see the log below. So we tried to simplify the panels as much as we could, which helped.. a little. The app didn't crashed with one panel. But when we added more (3-4), it started crashing again - it seems that it crashes randomly, I tried many times with a lot of combinations and sometimes it crashed, sometimes not. I'm not really sure what we're doing wrong and it seems like bs that the objects is too complicated (has too many components).The crash log:2019-11-06 16:02:12.167764+0100 AugmentedExhibitionDemoProject[34119:3193508] Assertion failed (operator[]:490). Condition: index < m_size
Assertion failed (operator[]:490). Condition: index < m_size
Check os_log for additional details!
2019-11-06 16:02:12.167895+0100 AugmentedExhibitionDemoProject[34119:3193508] Index out of range. index = 4294967295, size = 0Thanks for any advice.