I see some message in my console when I run this code. The issue only appears on macOS and the code works fine for iOS with no message. What does this message mean?
macOS: 12.3 - intel CPU and Xcode: Version 13.2.1 (13C100)
struct ContentView: View {
@State private var value: CGFloat? = 0.1
var body: some View {
Circle()
.frame(width: 200.0, height: 200.0)
.customOpacity(value)
.animation(.linear(duration: 5), value: value)
.onAppear(perform: { value = 1.0 })
}
}
extension View {
@ViewBuilder func customOpacity(_ value: CGFloat?) -> some View {
if let unwrappedValue: CGFloat = value { self.opacity(unwrappedValue) }
else { self }
}
}
opa[2319:80386] [] [0x7f954a02dc20] CVCGDisplayLink::setCurrentDisplay: 69989200
opa[2319:80386] [] [0x7f954a02dc00] CVDisplayLinkCreateWithCGDisplays count: 1 [displayID[0]: 0x42bf350] [CVCGDisplayLink: 0x7f954a02dc20]
opa[2319:80386] [] [0x7f954a02dc00] CVDisplayLinkStart
opa[2319:80386] [] [0x7f954a02dc20] CVDisplayLink::start
opa[2319:80882] [] [0x6000009a0af0] CVXTime::reset
opa[2319:80854] [] [0x7f954a02dc20] CVCGDisplayLink::finalize
opa[2319:80854] [] [0x7f954a02dc20] CVCGDisplayLink::finalize stopping
opa[2319:80854] [] [0x7f954a02dc20] CVDisplayLink::stop
opa[2319:80854] [] [0x7f954a02dc20] CVDisplayLink::finalize