You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compatible with Swift 6, code marks MainActor, Sendable, nonisolated, etc., easy to write safer code
Compatible with iOS 18, ViewIntrospect adds iOS 18 related variables
Refactor the proportional scaling implementation scheme, and related methods support non-main thread calls
Add SendableValue object to solve the problem of passing parameters of any object Sendable
Add observe method related to Message starting with safe, used for main thread calling listener handle
Add ProtectedValue, LockingProtocol and other thread safety tool classes
Add MainActor.runDeinit method to uniformly handle deinit calling main thread code problems
Router, JSBridge component related methods mark MainActor main thread calls, need to migrate and adapt
Remove the methods marked as deprecated in version 5.x, please use the new API to replace the implementation, need to migrate and adapt
Refactor the height acquisition methods of the global status bar, navigation bar, tab bar, etc., and give priority to dynamic acquisition and caching
Migrate
To adapt to Swift 6, you need to fix the compilation errors of related codes after marking MainActor, Sendable, and nonisolated, and you need to migrate and adapt
To adapt to iOS 18, if you use the ViewIntrospect component, you need to adapt to v18 related variables, and you need to migrate and adapt
To adapt to Plugin, you need to synchronously mark MainActor, Sendable, etc. when implementing custom Plugins, and you need to migrate and adapt
If the main thread needs to call the Message-related observe listener handle, please migrate to the corresponding method starting with safe
If you need to handle the problem of deinit calling the main thread code, please migrate to use the MainActor.runDeinit method
If the main project opens Swift 6 compilation, HTTPRequest request subclasses, etc. need to be synchronously marked as @unchecked Sendable
The obsolete methods of version 5.x have been removed. Please use the new Api to replace the implementation (such as chain=>layoutChain, etc.), and you need to migrate and adapt
After fixing the compilation error, you need to test whether the related functions are normal (such as the height of the status bar, navigation bar, MainActor related functions, etc.)
For more usage examples, please refer to the Example project