Is there a way that I can use to create a Dynamic Sheet Height using in SwiftUI (iOS14.7)?

294 views Asked by At

I tried this aproach https://stackoverflow.com/a/66925913/15450928 but is seems I can't center my graphical date and time picker.

Maybe someone has an idea about it.

This is what I use:

        .sheet(isPresented: $showEditDataTime, content: {
            EditDateAndTimeView()
                .frame(height: 580)
                .clearModalBackground()
        })

Here is my current result: enter image description here I need to create a Sheet with dynamic height for choosing a date and time and also have 2 buttons under this picker with a custom navigation bar.

The result should be something like this: enter image description here

0

There are 0 answers