Xcode14 beta(iOS 16), SwiftUI, _clockHandRotationEffect doesn't exist anymore

1.3k Views Asked by At

in order to achieve clock animation on home screen widget. i use

_clockHandRotationEffect(.custom(cycleTime), in:.current, anchor: .center)

but on Xcode14, it doesn't exist anymore. enter image description here

any replacement?

1

There are 1 best solutions below

2
everettjf On

use Xcode13 and Swift to build a static library. Then call the methods exposed by the static library from Xcode14.