Skip to content

swapify 0.1.3

Choose a tag to compare

@tornikegomareli tornikegomareli released this 27 Nov 11:56
· 77 commits to main since this release

Fixed

  • In the simulator, the app crashed after a reload of a file with a private type that has a fixed layout, such as a ViewModifier with Double fields: code that named the type's metadata directly got the patch's copy, a second type that SwiftUI could not cast to the app's (#7). Such references now read the app's metadata. Simulator patches compile through LLVM IR for this, about 30 ms more per file.
  • Every reload failed with cannot have input files with file list on a target that Xcode compiles through a file list, which large targets get (#6, #8).
  • A reload failed when the scheme had code coverage on, or when the target emitted localized strings (#8).
  • On a target compiled through a file list, the copy of a file as built no longer compiled, so an iPhone reload skipped the layout guard and a new stored property of a class needed a rebuild (#11).
  • The app aborted after swapify run when a view had an accessibility element with no frame, such as an empty safeAreaBar (#9, #10).