mirror of
				https://github.com/maxgoedjen/secretive.git
				synced 2025-10-31 07:20:57 +00:00 
			
		
		
		
	Preview
This commit is contained in:
		
							parent
							
								
									84dd9403c3
								
							
						
					
					
						commit
						e94346583e
					
				| @ -88,7 +88,7 @@ extension ContentView { | ||||
|                 }, label: { | ||||
|                     Image(systemName: "plus") | ||||
|                 }) | ||||
|                 .popover(isPresented: $showingCreation, attachmentAnchor: .point(.bottom), arrowEdge: .bottom) { | ||||
|                 .sheet(isPresented: $showingCreation) { | ||||
|                     if let modifiable = storeList.modifiableStore { | ||||
|                         CreateSecretView(store: modifiable, showing: $showingCreation) | ||||
|                     } | ||||
|  | ||||
| @ -55,3 +55,16 @@ struct CreateSecretView<StoreType: SecretStoreModifiable>: View { | ||||
|         showing = false | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| #if DEBUG | ||||
| 
 | ||||
| struct CreateSecretView_Previews: PreviewProvider { | ||||
| 
 | ||||
|     static var previews: some View { | ||||
|         Group { | ||||
|             CreateSecretView(store: Preview.StoreModifiable(), showing: .constant(true)) | ||||
|         } | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| #endif | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user