Hello
i have a Problme in xCode im new in Xcode can me helf everyone
Hello
i have a Problme in xCode im new in Xcode can me helf everyone
@objc private func takeSnapshot() {
let image = NSImage(size: outputSize)
image.lockFocusFlipped(true)
if let context = not NSGraphicsContext.current()?
{
context.scaleBy(x: scale, y: scale)
recordingLayer.presentation()?.render(in: context)
}
image.unlockFocus()
var destRect = NSRect(origin: .zero, size: outputSize)
let cgImage = image.cgImage(forProposedRect: &destRect, context: NSGraphicsContext.current, hints: nil)
if let cgImage = cgImage {
frames.append(cgImage)
}
}
i have a Problme in xCode
It’s hard to help here because you haven’t posted any details of the problem. Are you having problems getting the playground to accept your code? Or problems when that code actually runs? What are the symptoms of your problems? If the playground doesn’t accept your code, it usually offers up some suggestions as to what’s gone wrong. Do you get such a message?
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"