This seems to yield the desired result. It's not very elegant but it works:
struct MyView: View {
var scene: SKScene // this is a SKScene with .aspectFit scaling mode
@State private var scaledHeight = 0.0
var body: some View {
List {
Section {
SpriteView(scene: scene, options: [.allowTransparency])
.frame(height: scaledHeight)
.background(GeometryReader { geo -> Color in
DispatchQueue.main.async {
scaledHeight = geo.size.width / scene.size.width * scene.size.height
}
return Color.clear
})
}
Section {
Text("SomeOtherStuff")
}
}
}
}
Post
Replies
Boosts
Views
Activity
It seems GeometryReader itself prevents the list 'cell' from growing. Looking for workarounds.
It seems to work properly if I take action on the .ended state. However, this state is only attained when the touch ends, which isn't how I expect a long press to be triggered.
Ok, I may have found a solution by using UITableViewDelegate's indexPathForPreferredFocusView instead of relying on preferredFocusEnvironments.
Same issue here.
This also seems to break SwiftUI previews on my tvOS target. The preview fails and Xcode complains about the iOS storyboard being present and unsupported.
I'm pretty sure the App Store prices include the VAT. Apple collects that and gives you 70% of what remains. They are the ones handling sales tax payments to the local government.You are responsible for declaring your income and paying income tax on that.
French Canadian here. Amélie is listed as a French (Canada) voice. She seems to speak in more of a standardized (i.e. "international") French. I tried "Amélie (améliorée)" and she did sound better.