SwiftUI PhotoPicker always warning in swift6.2

When I migrate to swift6.2, the photopicker always giving the warning like below: Call to main actor-isolated initializer 'xxxfunction' in a synchronous nonisolated context it's so weird,because no matter it's a viewbuilder or a struct view,it can't fix the warning.

SwiftUI PhotoPicker always warning in swift6.2
 
 
Q