-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from inamiy/VideoDetector
Add VideoDetector example
- Loading branch information
Showing
23 changed files
with
1,497 additions
and
17 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 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
23 changes: 23 additions & 0 deletions
23
Examples/Actomaton-Gallery/Root/ExampleList/Examples/VideoDetectorExample.swift
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,23 @@ | ||
import SwiftUI | ||
import ActomatonStore | ||
import VideoDetector | ||
|
||
struct VideoDetectorExample: Example | ||
{ | ||
var exampleIcon: Image { Image(systemName: "video") } | ||
|
||
var exampleInitialState: Root.State.Current | ||
{ | ||
.videoDetector(VideoDetector.State()) | ||
} | ||
|
||
func exampleView(store: Store<Root.Action, Root.State>.Proxy) -> AnyView | ||
{ | ||
Self.exampleView( | ||
store: store, | ||
actionPath: /Root.Action.videoDetector, | ||
statePath: /Root.State.Current.videoDetector, | ||
makeView: VideoDetectorView.init | ||
) | ||
} | ||
} |
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 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
21 changes: 21 additions & 0 deletions
21
Examples/Actomaton-UIKit-Gallery/ExampleList/Examples/VideoDetectorExample.swift
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,21 @@ | ||
import SwiftUI | ||
import ActomatonStore | ||
import VideoDetector | ||
|
||
struct VideoDetectorExample: Example | ||
{ | ||
var exampleIcon: Image { Image(systemName: "video") } | ||
|
||
@MainActor | ||
func build() -> UIViewController | ||
{ | ||
HostingViewController( | ||
store: Store( | ||
state: .init(), | ||
reducer: VideoDetector.reducer, | ||
environment: () | ||
), | ||
makeView: VideoDetectorView.init | ||
) | ||
} | ||
} |
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 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.