Xcode 7.3 has deprecated XCPlaygroundPage.currentPage.captureValue(_:withIdentifier:)
. Its predecessor, XCPCaptureValue()
, was deprecated in Xcode 7.1.
I'm wondering if there is any replacement, apart from implicit capture of collections and in loops? Apart from being more flexible using the explicit approach, the ability to add captions to graphs seems to be gone with the deprecation/removal (although the symbols are found, the aforementioned deprecated methods don't do anything, or at least not what you'd expect).
There is currently no alternative or replacement. Graphs are only displayed implicitly. I have verified this in the Swift/Xcode labs at WWDC 2016. I have filed a radar and will update this questions, should there be any progress.
Use the currentPage
property:
XCPlaygroundPage.currentPage.captureValue(_, withIdentifier:)
来源:https://stackoverflow.com/questions/36305877/swift-playgrounds-replacement-for-capturevalue-withidentifier