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(
url: "https://github.com/pointfreeco/swift-custom-dump.git",
.upToNextMajor(from: "0.5.2")
),
.package(
url: "https://github.com/kean/Pulse.git",
.upToNextMajor(from: "2.1.2")
),
],
targets: [
.target(
......@@ -98,6 +102,7 @@ let package = Package(
.target(name: "WelcomeFeature"),
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
.product(name: "ComposablePresentation", package: "swift-composable-presentation"),
.product(name: "PulseUI", package: "Pulse"),
.product(name: "XXMessengerClient", package: "elixxir-dapps-sdk-swift"),
.product(name: "XXModels", package: "client-ios-db"),
],
......
import ComposableArchitecture
import HomeFeature
import PulseUI
import RestoreFeature
import SwiftUI
import WelcomeFeature
struct AppView: View {
let store: Store<AppState, AppAction>
@State var isPresentingPulse = false
enum ViewState: Equatable {
case loading
......@@ -119,6 +121,15 @@ struct AppView: View {
.animation(.default, value: viewStore.state)
.task { viewStore.send(.start) }
}
.onShake {
isPresentingPulse = true
}
.fullScreenCover(isPresented: $isPresentingPulse) {
PulseUI.MainView(
store: .shared,
onDismiss: { isPresentingPulse = false }
)
}
}
}
......
......@@ -36,6 +36,15 @@
"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",
"kind" : "remoteSourceControl",
......@@ -90,6 +99,15 @@
"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",
"kind" : "remoteSourceControl",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment