Questions tagged [modal-sheet]

11 questions
6
votes
2 answers

How to dismiss a presenting view to the root view of tab view in SwiftUI?

I'm using TabView on my home page. Let's just say I have 4 tabs. On second tab, i can go to another view using NavigationLink and I go to another 2 views using NavigationLink. Then on the latest view, there is a button to present a view and i use…
Aldo Sugiarto
  • 197
  • 3
  • 20
2
votes
2 answers

How to set DraggableScrollableSheet maximum size dynamically, according to its content?

Problem So basically it's quite an old problem, which I couldn't fix with Google. The problem is that DraggableScrollableSheet doesn't size its maximum size based on its content size, but with only a static value maxChildSize, which is just not good…
Havlik Miki
  • 41
  • 1
  • 5
1
vote
1 answer

SwiftUI image in modal sheets for Apple Watch

I would like to create a modal sheets with an image in the body, like in Human Interface Guidelines. Could you please give me an example? https://developer.apple.com/design/human-interface-guidelines/watchos/interaction/modality/
mamutido
  • 191
  • 1
  • 1
  • 8
0
votes
1 answer

How to set up Ionic Auto Height Sheet modal in Vue 3

I am attempting set up an Ionic Auto Height Sheet modal in a Vue 3 project (https://ionicframework.com/docs/api/modal#auto-height-sheet). See my code below. On ion-tab-button #3, I added id="open-modal". Below the ion-tab-button, I added the modal…
JS_is_awesome18
  • 1,587
  • 7
  • 23
  • 67
0
votes
0 answers

React-modal-sheet doesn't block background and you can manipulate rest of page when bottom-sheet is open

The problem is that sheet overlay doesn't block background and when manipulating page several sheets can be opened at one time. It's necessary that you can open only one sheet at once. Sheet.Backdrop didn't solve the item. Using react-aria/overlays…
0
votes
1 answer

Build widgets in an Edit Screen with riverpod

https://i.stack.imgur.com/qYUwW.png I am working on an edit screen for editing an existing habit. A habit has a color and I need to pass the old or previous color of the current habit to be edited to a color_selector modal sheet such that if the…
nonsocchi
  • 84
  • 2
  • 6
0
votes
1 answer

howt to make ionic tab bar showing in modals

We are building an app with ionic library in angular. We are facing a problem: we want to display the bottom tab bar in the whole app including the modals but when the modal is opening (the designers wat to open it from the bottom), it goes over the…
0
votes
1 answer

Unable to move TextForm Field inside Listview to adjust to Keyboard

The problem that I'm having is that at the bottom Fields the keyboard covers the Fields which I'm working with so I can't see what I'm typing as you can see in these pictures: As an example see the field called: "Cita" And once selected: Finally…
Rene Alas
  • 481
  • 4
  • 14
0
votes
2 answers

Overflow when using viewinsets in a modalButtomSheet

Problem: I'm using MediaQuery and viewInsets to add Padding, when the user triggers the keyboard in a modalBottomSheet. It looks OK, but I get a message about overflow When I draw down the modalBottomSheet manually, I can see the overflow happening…
Joe
  • 311
  • 3
  • 17
0
votes
0 answers

Sheet freeze in SwiftUI when parent-View gets updated

Using Swift5.3.2, iOS14.4.1, XCode12.4, I am showing a modal sheet in SwiftUI. Unfortunately, the sheet completely freezes whenever an underlying parent-View re-renders/updates. I am absolutely clueless on how I can circumvent that issue. Any ideas…
iKK
  • 6,394
  • 10
  • 58
  • 131
-1
votes
1 answer

Sheet Modal does not present whole View in SwiftUI

I am pretty new to SwiftUI programming and ran into the following problem that I cannot find an answer to. I want to open a sheet modal from my Main View and want to present a simple View with an Rect on it (for testing purposes). …
jakob witsch
  • 157
  • 1
  • 1
  • 12