Skip to content

✨ Preview #140

Open
Open

Description

@underthestars-zhy

When writing code like swiftui or HTML, we always expect a preview view. So in this way, we can know what we are doing or changing. Also, data analyst needs this too.

Activity

  1. underthestars-zhy commented on Mar 22, 2022

    @underthestars-zhy
    Author

    About SwiftUI preview, I have two ways to manage it.
    First, if we could find how Xcode previews the view, we would need to figure out how to get the subview of a view and modifies of a view.
    Second way. We could create a FakeUI. This package has the same functions or methods as SwiftUI. And we change import SwiftUI to import FakeUI. And run it. Get a JSON result and recognize it, then display the preview.

  2. nanashili commented on Mar 22, 2022

    @nanashili
    Contributor

    About SwiftUI preview, I have two ways to manage it.
    First, if we could find how Xcode previews the view, we would need to figure out how to get the subview of a view and modifies of a view.
    Second way. We could create a FakeUI. This package has the same functions or methods as SwiftUI. And we change import SwiftUI to import FakeUI. And run it. Get a JSON result and recognize it, then display the preview.

    You could take a look at the android version on github and get an exact idea of how they handle previews

  3. changed the title [-][FEAT] - Preview[/-] [+]✨ Preview[/+] on Mar 31, 2022
  4. stale commented on May 30, 2022

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  5. removed
    wontfixThis will not be worked on
    on Jun 6, 2022
  6. moved this from 🆕 New to 📋 Backlog in CodeEdit Projecton Feb 17, 2023
  7. AryanRogye commented on May 2, 2026

    @AryanRogye

    I'm not sure if this helps but I got somewhat of a scratch project with preview working:

    https://github.com/AryanRogye/SwiftUIPreviewRunner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions