Post

Replies

Boosts

Views

Activity

Comment on Is it possible to simultaneously record from microphone and camera?
I have done this, but in my test, I found that shortly after toggling Capture Audio and update the stream, the AVAssetWriter will give me an error getSubtractiveDecodeDuration signalled err=-16364 (kMediaSampleTimingGeneratorError_InvalidTimeStamp) (Decode timestamp is earlier than previous sample's decode timestamp.). This will lead to my output video file unplayable. I have no idea how to fix this.
Topic: App & System Services SubTopic: General Tags:
Sep ’22
Comment on Playgrounds app with the latest SDK (OS 26)
This is being discussed internally Sounds good. Good luck to the team and for us (students)
Replies
Boosts
Views
Activity
Jan ’26
Comment on iPhone 15 series' 24MP photoshoot
Using .builtInWideAngleCamera with autoDeferredPhotoDelivery enabled. Still can not access (5712, 4284)
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Jul ’24
Comment on numericText transition for normal SwiftUI View
Cool
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Comment on numericText transition for normal SwiftUI View
Exactly. It has been fixed in iOS 17. Sadly, if you really want to use it, you need to write a custom one.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Comment on numericText transition for normal SwiftUI View
Sorry, I forgot to reply you. The answer below is correct, which you need to update your view within an animation block. But in your case, just add a transaction and set transaction.animation. Maybe it’ll work.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’23
Comment on How to sync video and audio?
I'm sorry but I have no idea how to implement kCMSampleBufferAttachmentKey_EmptyMedia. Is there any documentation to be referenced?
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to sync video and audio?
I will try it later!
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on isReadyForMoreMediaData and AVAssetWriterInput
Thanks for reply. I have 3 inputs in my project. One for video, one for screen audio, and another for mic audio. The other two inputs can always append buffers while only video input sometimes will be blocked at isReadyForMoreMediaData.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on .backgroundTask in SwiftUI cannot compile
Can this be able to run properly on the first public version(iOS 16.0, watchOS 9)?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Comment on Is it possible to simultaneously record from microphone and camera?
I have done this, but in my test, I found that shortly after toggling Capture Audio and update the stream, the AVAssetWriter will give me an error getSubtractiveDecodeDuration signalled err=-16364 (kMediaSampleTimingGeneratorError_InvalidTimeStamp) (Decode timestamp is earlier than previous sample's decode timestamp.). This will lead to my output video file unplayable. I have no idea how to fix this.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’22
Comment on .backgroundTask in SwiftUI cannot compile
But this is just a temporary solution. I'm wondering why Apple didn't fix it until now... :(
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on .backgroundTask in SwiftUI cannot compile
But I don't want to write like this, it's too wired, although the problem will be fixed. But now, this is the only solution. SO SAD :(
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on .backgroundTask in SwiftUI cannot compile
I totally agree with you. Your assumption is correct.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on .backgroundTask in SwiftUI cannot compile
In order to pack the modified view into one single, unmodified view. My solution is AnyView(ContentView().anyModifiers...). It works for me.  @javiermares
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on .backgroundTask in SwiftUI cannot compile
It's not a problem cause by modifier's order. In fact, If I only have one line of code inside WindowGroup, it can compile successfully.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22