Pretty sure this is a no-no, but asking just in case there's an easy way to make this work
struct DocumentContentView: View {
private static let logger = Logger(
subsystem: "mySubsystem",
category: String(describing: Self.self)
)
var body: some View {
VStack {
Text("Hello")
logger.trace("hello")
}
}
}
This code generates the following compile error at the logger.trace line
buildExpression is unavailable: this expression does not conform to View
I suspect every line of the body var (or any @ViewBuilder - designated code?) needs to 'return' a View. Is this correct? or more importantly any work arounds other than putting some/all of the view contents in a. func()?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
When I:
open a simulator (eg iPhone 15, iOS 17.0)
open the Photos app
tap on an image (either one that comes included, or something I've saved to PhotoRoll)
tap Edit
I see the typical Photos Edit view with two key differences.
the image is not visible, the middle of the view is all black
there are now Cancel/Done/Dismiss buttons. I need to force quit to get back to the Springboard (Is that still the correct term?)
Am I doing something wrong, or should the simulator's Photo's app be providing a better edit experience?
I'm getting this error when attempting to upload an iOS app to iTunes Connect. I've tried using Transporter, and get the same result.I've also tried uploading a new version of an app that uploaded correctly in November and got the same result.Does anyone have any suggestions for possible causes for this error?thanks,