Profile Photo
Hi,   I have the issue (on iOS/iPadOS) once a NavigationLink was tapped/used it won't trigger the navigation again after navigating back. The most minimal code example would be:   struct ContentView: View {… (Show more)
in SwiftUI
Profile Photo
Imagine a Stepper with a left label (from troz.net):   Stepper(value: $stepperValue, in: 0...20) {… (Show more)
in SwiftUI
Profile Photo
Experimenting with @autoclosure with variatic parameters. With that qualifier there, compiler faults. Comment just "@autoclosure" out, then it compiles just fine. Code:   fileprivate func LOG(_ flag: Int, _ items: @autoclosure Any..., separator: String = " ", terminator: String = "\n") {… (Show more)
in Swift
Profile Photo
I have a 30 second video I want to loop and uses an AVVideoComposition. It works flawlessly in the Catalina Simulator, but fails on my iPad 9.7". Originally I thought the problem was with the CIFilters, but in the end it was the simple existence of the composition block:   func runMovie() {… (Show more)
Profile Photo
My company purchased a 1 min looping video from Pond5 in this format: "1920x1080 @25fps / mov / 224.8MB / H.264". The video isn't really a minute long: the first 30 seconds are an animated object, and the last 30 are the an "alpha mask" (white and black image, white the animation object).   When I use AVPlayer to loop the first 30 seconds, the… (Show more)
Profile Photo
I have a .mov file that loops every 30 seconds, h@64 1920x1080, 25 fps. It has a black background that I'd like to make transparent - in fact I'd like every pixel to be transparent. So I created an AVPlayer to play it, but nothing I did made the video transparent. THen I tripped on a StackOverflow post that said I needed to add this setting:  … (Show more)
Profile Photo
I'm trying to get Apple's FunHouse app to build in newer Xcode releases - post Xcode 9 the main window is black. What I've learned is that in Xcode 9, when the NSOpenGLView asked for the current graphicsContext in drawRect:, it gets back a NSWindowGraphicsContext. In Xcode 10+, it gets a NSBitMapGraphicsContext. [It only gets this when you force… (Show more)
in Cocoa
Profile Photo
Currently I'm developing plug-in software that must work in both legacy 32-bit as well as 64-bit applications. From Xcode 10, support for building 32-bit binaries was dropped, so, I continue to use Xcode 9 to build and sign 32-bit/64-bit fat binaries, and these get packaged into a .dmg file, and the altool and stapler utilities from Xcode 10 are… (Show more)
in macOS 10.15 beta
Profile Photo
I apply real time effects using CoreImage to video that is played using AVPlayer. The problem is when the player is paused, filters are not applied if you tweak filter parameters using slider.   let videoComposition = AVMutableVideoComposition(asset: asset, applyingCIFiltersWithHandler: {[weak self] request in… (Show more)