Questions tagged [modal-view]
62 questions
1
vote
1 answer
ContentView redraw from change in modalView not triggered
Ever since the advent of swiftUI 2.0, I have been unable to update a view according to a change done in another modally-presented view (the settings view).
I display a string on my main ContentView that derives its content from a segmented Picker…

Esowes
- 287
- 2
- 13
1
vote
2 answers
SwiftUI return value from modal view
I currently have a List that is inside a modal (.sheet) view, and I'm trying to retrieve the tapped value from it back to the previous view. How can I achieve this?
import SwiftUI
struct ContentView: View {
@State var showingModal: Bool =…

Frakcool
- 10,915
- 9
- 50
- 89
1
vote
1 answer
Problems with EnvironmentObject in ModalView
I have created a simple List and want to add users to it. My project has CoreDate activated and I have add the following Code to the SceneDelegate:
let userStorage = UserStorage()
let contentView =…

Libiph
- 503
- 2
- 6
- 9
1
vote
1 answer
Simple assignment operation in init method does not work swiftui
I am new in iOS and, right now, trying to implement my own init method in swiftui view. Init has one parameter and have to assign value to two States. But, whatever I do, it does not fill them properly. I use MapKit and CLLocationCoordinate2D for…

Merima
- 11
- 1
1
vote
1 answer
Use a people picker inside a tab bar
I am currently using the people picker in IOS to show the list of contacts and let the user select the contact they want to use within my app.
Currently it is presented Modally, as in it pops up and covers my entire app.
My app has a Tab bar at the…

Donal Rafferty
- 19,707
- 39
- 114
- 191
1
vote
1 answer
external page load in modal view + vuejs
I am trying to open an external page in bootstrap modal view.
It is working fine if the "open Modal" button is in normal div. But if the button is inside the div, which is accessed by vuejs, modal is opening but the page is not loading anymore.
here…

Shaon Debnath
- 95
- 2
- 10
1
vote
1 answer
After presenting a modalviewController inside a navigationController, push and pop animations become corrupted
I have a normal NavigationController.
When i open one modalView (using segues) and dismiss it, all the next push and pop animations from the NavigationController gets messy.
Basically it only animates the navigation bar, but the content of that…

João Nunes
- 3,751
- 31
- 32
0
votes
3 answers
Dismissing a modal view causes the app crash
I'm displaying a modal view called "rule" from a round rect button. In that "rule" modal view i'm displaying another modal view called "newRule" when user clicks the Create Rule button.
When i'm quitting from the "newRule" modal view the app…
user792459
0
votes
1 answer
My View is not getting Updated after Editing from Modal View SwiftUI
I have View called TransferFlowView() and I have an ObservedObject.
struct TransferFlowView: View { @ObservedObject var transferListVM = TransferListViewModel() }
In TransferListViewModel(), I have a function to Update viewModel.
class…

Manjunath
- 11
- 2
0
votes
2 answers
ModalView in Kivy
I'm having trouble with Kivy. I'm using a ModalView and I want the background color to be white or the same as the app's main theme. The documentation says: "This acts as a multiplier to the texture color. The default texture is gray, so just…

Семёнов Егор
- 11
- 2
0
votes
1 answer
slack update modal view on on_enter_pressed
I'm trying to update the hint of an input text on my modal view upon the user press enter.
Slack documentation state that it is possible using on_enter_pressed but I can't get it to work.
This is the code that get properly called on the action…

carlitos081
- 645
- 2
- 7
- 19
0
votes
0 answers
Modal video sound issue
I have an issue, so I have a function that allows me to play the video and close it on modal window. And the issue is when there is some actions on page happening (like checkbox point) the modal video window closes but sound keeps playing.
(…

Andrian Yu
- 11
- 1
0
votes
0 answers
How to interrupt an executing function in kivy?
I am developing an app in Kivy and have one function that seems to take a long time to finish. Therefore, when the button that calls this function is pressed, i first open a modalview with a progress bar. I now want to update the value in the…

Alex
- 57
- 2
- 8
0
votes
1 answer
Present a modalview in a tabbar app
I have a tabbar project, but when the app loads, it should display a modal view with a login screen. I do
selfcareViewController *selfcareView = [[selfcareViewController alloc]init];
[self presentModalViewController:selfcareView…

MaikelS
- 1,309
- 4
- 16
- 33
0
votes
1 answer
SwiftUI: Close modal sheet programmatically from a function inside an Environment Object
I've a main view that displays a modal sheet. As I've multiple modals, I use enum and State to control which sheet is presented.
@State var activeSheet: Sheet?
Inside my MainView:
Button(action: {
activeSheet = .settings
}, label:…

Mallon
- 13
- 4