Weird behaviour of Xcode 11 Debugger – Showing values as nil when there’s a value

This is a known bug, affecting LLDB (the Xcode debugger) as well as the REPL. It’s purely a matter of display: https://github.com/apple/llvm-project/issues/4477 https://github.com/apple/llvm-project/issues/4479 And see: Instantiated optional variable shows as nil in Xcode debugger An easy workaround for now is to pass thru the bridged Objective C type. The bug is only with the Swift … Read more

Chaining animations in SwiftUI

As mentioned in the other responses, there is currently no mechanism for chaining animations in SwiftUI, but you don’t necessarily need to use a manual timer. Instead, you can use the delay function on the chained animation: withAnimation(Animation.easeIn(duration: 1.23)) { self.doSomethingFirst() } withAnimation(Animation.easeOut(duration: 4.56).delay(1.23)) { self.thenDoSomethingElse() } withAnimation(Animation.default.delay(1.23 + 4.56)) { self.andThenDoAThirdThing() } I’ve found … Read more

Could not find module for target ‘x86_64-apple-ios-simulator’

To solve this issue I had to create a fat library of my custom framework again using xcode 11 tools. To do that I did the following: 1) Build YourCustomFramework target for iOS simulator and extract framework from products folder on your desktop. Xcode⁩ ▸ ⁨DerivedData⁩ ▸ ⁨Your Project ▸ ⁨Build⁩ ▸ ⁨Products⁩ ▸ ⁨Release-iphonesimulator … Read more