Skip to content
Snippets Groups Projects
Commit 3aff7ba4 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Add PulseUI to example app

parent 36e598d5
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!101Messenger example - logging
...@@ -58,6 +58,10 @@ let package = Package( ...@@ -58,6 +58,10 @@ let package = Package(
url: "https://github.com/pointfreeco/swift-custom-dump.git", url: "https://github.com/pointfreeco/swift-custom-dump.git",
.upToNextMajor(from: "0.5.2") .upToNextMajor(from: "0.5.2")
), ),
.package(
url: "https://github.com/kean/Pulse.git",
.upToNextMajor(from: "2.1.2")
),
], ],
targets: [ targets: [
.target( .target(
...@@ -98,6 +102,7 @@ let package = Package( ...@@ -98,6 +102,7 @@ let package = Package(
.target(name: "WelcomeFeature"), .target(name: "WelcomeFeature"),
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"), .product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
.product(name: "ComposablePresentation", package: "swift-composable-presentation"), .product(name: "ComposablePresentation", package: "swift-composable-presentation"),
.product(name: "PulseUI", package: "Pulse"),
.product(name: "XXMessengerClient", package: "elixxir-dapps-sdk-swift"), .product(name: "XXMessengerClient", package: "elixxir-dapps-sdk-swift"),
.product(name: "XXModels", package: "client-ios-db"), .product(name: "XXModels", package: "client-ios-db"),
], ],
......
import ComposableArchitecture import ComposableArchitecture
import HomeFeature import HomeFeature
import PulseUI
import RestoreFeature import RestoreFeature
import SwiftUI import SwiftUI
import WelcomeFeature import WelcomeFeature
struct AppView: View { struct AppView: View {
let store: Store<AppState, AppAction> let store: Store<AppState, AppAction>
@State var isPresentingPulse = false
enum ViewState: Equatable { enum ViewState: Equatable {
case loading case loading
...@@ -119,6 +121,15 @@ struct AppView: View { ...@@ -119,6 +121,15 @@ struct AppView: View {
.animation(.default, value: viewStore.state) .animation(.default, value: viewStore.state)
.task { viewStore.send(.start) } .task { viewStore.send(.start) }
} }
.onShake {
isPresentingPulse = true
}
.fullScreenCover(isPresented: $isPresentingPulse) {
PulseUI.MainView(
store: .shared,
onDismiss: { isPresentingPulse = false }
)
}
} }
} }
......
...@@ -36,6 +36,15 @@ ...@@ -36,6 +36,15 @@
"version" : "4.2.2" "version" : "4.2.2"
} }
}, },
{
"identity" : "pulse",
"kind" : "remoteSourceControl",
"location" : "https://github.com/kean/Pulse.git",
"state" : {
"revision" : "786611d3094e33f27d4546b260a966352bc45fd6",
"version" : "2.1.2"
}
},
{ {
"identity" : "swift-case-paths", "identity" : "swift-case-paths",
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
...@@ -90,6 +99,15 @@ ...@@ -90,6 +99,15 @@
"version" : "0.4.1" "version" : "0.4.1"
} }
}, },
{
"identity" : "swift-log",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-log.git",
"state" : {
"revision" : "6fe203dc33195667ce1759bf0182975e4653ba1c",
"version" : "1.4.4"
}
},
{ {
"identity" : "xctest-dynamic-overlay", "identity" : "xctest-dynamic-overlay",
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment