This commit is contained in:
Max Goedjen 2022-02-27 13:30:18 -08:00
parent 84dd9403c3
commit e94346583e
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
2 changed files with 14 additions and 1 deletions

View File

@ -88,7 +88,7 @@ extension ContentView {
}, label: { }, label: {
Image(systemName: "plus") Image(systemName: "plus")
}) })
.popover(isPresented: $showingCreation, attachmentAnchor: .point(.bottom), arrowEdge: .bottom) { .sheet(isPresented: $showingCreation) {
if let modifiable = storeList.modifiableStore { if let modifiable = storeList.modifiableStore {
CreateSecretView(store: modifiable, showing: $showingCreation) CreateSecretView(store: modifiable, showing: $showingCreation)
} }

View File

@ -55,3 +55,16 @@ struct CreateSecretView<StoreType: SecretStoreModifiable>: View {
showing = false showing = false
} }
} }
#if DEBUG
struct CreateSecretView_Previews: PreviewProvider {
static var previews: some View {
Group {
CreateSecretView(store: Preview.StoreModifiable(), showing: .constant(true))
}
}
}
#endif