Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 524 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 524 Bytes

Icon

AsyncPreview

Preview views with asynchronous dependencies, on Xcode canvas.

Usage

#Preview {
    AsyncModel { model in
        SomeView().environment(model)
    } model: {
        try await SomeAsynchronousModel()
    }
}

Installation

Swift Package Manager

  • On XCode, select File > Add Package Dependencies...
  • Search for https://github.com/TaimurAyaz/AsyncPreview.git
  • Add package