-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebuild PlaybookUI from scratch (#65)
* Implement new PlaybookUI * Set maxSize for preview image * Further performance adjustment * Refactoring * Refactoring * Fix snapshot test * Refactoring * Update README * Remove dead codes * REmove UISceneConfigurationName
- Loading branch information
Showing
117 changed files
with
2,105 additions
and
3,259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import SwiftUI | ||
import SampleComponent | ||
|
||
@main | ||
struct SampleApp: App { | ||
var body: some Scene { | ||
WindowGroup { | ||
CategoryHome() | ||
.environmentObject(UserData()) | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import PlaybookUI | ||
import SwiftUI | ||
|
||
@main | ||
struct SamplePlaybookApp: App { | ||
enum Tab { | ||
case catalog | ||
case gallery | ||
} | ||
|
||
@State | ||
var tab = Tab.gallery | ||
|
||
init() { | ||
Playbook.default.add(AllScenarios.self) | ||
} | ||
|
||
var body: some Scene { | ||
WindowGroup { | ||
TabView(selection: $tab) { | ||
PlaybookGallery() | ||
.tag(Tab.gallery) | ||
.tabItem { | ||
Image(systemName: "rectangle.grid.3x2") | ||
Text("Gallery") | ||
} | ||
|
||
PlaybookCatalog() | ||
.tag(Tab.catalog) | ||
.tabItem { | ||
Image(systemName: "doc.text.magnifyingglass") | ||
Text("Catalog") | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.