Posts

Post not yet marked as solved
0 Replies
329 Views
I haven't be able to generate a HEIC photo with IPTC metadata, in JPEG I get it but no in HEIC. I'm using: CIContext method heifRepresentation(of: image, format: CIFormat.RGBA8, colorSpace: colorSpace, options: options) to generate the photo data, image is a CIImage and has the IPTC metadata but the final photo doesn't have it. If I use: CIContext method jpegRepresentation(of: image, colorSpace: ColorSpace.deviceRGB, options: options) the final JPG photo has the IPTC information. Anyone with the same issue or with an idea about what's going on?
Posted
by lcalmn.
Last updated
.
Post not yet marked as solved
0 Replies
382 Views
I'm trying to fix an animation that stop working with IOS 14 update and I traced the issue to a code similar to: struct ContentView: View {     var body: some View {         VStack {             Test()             Test()             Test()         }     } } struct ContentViewPreviews: PreviewProvider {     static var previews: some View {         ContentView().environmentObject(PublisherTest())     } } class PublisherTest: ObservableObject {     @Published var finished = Bool.random() } struct Test: View {     @EnvironmentObject var publicador: PublisherTest     @State var angle = Angle()     var body: some View {         Text("Test")             .rotationEffect(angle)             .onReceive(publicador.$finished) { in                 withAnimation(Animation.default.speed(0.1)) {                     angle.degrees = 180                 }             }     } } I don't understand why the first Test() is rotated without animation and the others Test() are animated. Thank very much for your advice.
Posted
by lcalmn.
Last updated
.