← Back to all updates

Editor Centering and Thread-Safety Improvements

Commit: ee4296c

The editor’s layout behavior has been corrected to maintain centering when sidebars are toggled. Additionally, a crash related to thread safety in the VaultViewModel’s content cache has been resolved.

Technical Approach

The layout adjustment was implemented by transitioning from an HStack to a ZStack combined with padding to prevent layout shifts. Thread safety was ensured by adding @MainActor annotations to cache access methods and wrapping asynchronous cache operations within MainActor.run blocks.

Technical Details

  • Editor column remains centered when sidebars are shown or hidden.
  • EXC_BAD_ACCESS crash in VaultViewModel contentCache has been fixed.
  • Implemented LocalContentCache and NoteBackupService for improved data handling.
  • Applied various UI improvements and resolved other minor bugs.