Your Core Data fetches may return unexpected results, or why you should use Query Generations

The issue I am going to talk about is relevant to anyone who uses Core Data. It is an “invisible” issue that may show up so rarely that it’s almost impossible to debug. It is only catchable by repeated automated tests. Let’s take a look at the piece of code that has single perform(_:) whichContinue reading “Your Core Data fetches may return unexpected results, or why you should use Query Generations”

AVMutableVideoCompositionLayerInstruction assetTrack

For AVVideoComposition to work correctly, you should init AVMutableVideoCompositionLayerInstruction with AVCompositionTrack created by you, instead of AVAssetTrack provided by AVAsset. This may be unintuitive at first, because how do you apply instructions to the track you want? How do you do transitions if there is only one AVCompositionTrack? Well, you’d create two, and alternate betweenContinue reading “AVMutableVideoCompositionLayerInstruction assetTrack”

TIL sif – step into function

When Swift came out, I kinda stopped using Xcode’s Step Into process control in Debug Bar, mostly due to Swift’s more frequent usage of accessors and computed properties etc. But 2016’s WWDC talk Debugging Tips and Tricks https://developer.apple.com/videos/play/wwdc2016/417/ says that I shouldn’t abandon trying. I recommend you watching the whole video, or at least theContinue reading “TIL sif – step into function”