DanXi-Dev / DanXi-swift

A Swift Reimplementation of DanXi
GNU Affero General Public License v3.0
13 stars 3 forks source link

Make AsyncContentView refreshable #93

Closed singularity-s0 closed 7 months ago

singularity-s0 commented 7 months ago

This PR makes AsyncContentView refreshable using the SwiftUI RefreshAction environment variable. Upon completion, it should close #33 .

singularity-s0 commented 7 months ago

This PR is not completed yet, as the code will not compile. But I would like to request review on the modifications to AsyncContentView.

The new proposed usage would be

AsyncContentView { forceReload in
    // ...action...
} content: {
    // ...view...
}
singularity-s0 commented 7 months ago

The PR is ready for review. @fsy2001