2,784 questions
1
vote
1
answer
33
views
iOS 26 - Swipe to dismiss in a navigation controller by starting the swipe at the left edge of the screen and not center of screen
In my app you can swipe from left-to-right on the left edge of the screen to dismiss a UIViewController in a UINavigationController.
But now in iOS 26, you can start the swipe from anywhere on the ...
0
votes
0
answers
38
views
Detail View on a different View Controller not showing after selecting a map pin possibly because of a Task block Swift [duplicate]
When I press on a map pin, the detail view on a different View Controller for the selected restuarant’s pin is not shown. I think this is occurring because of the Task block I'm using.
Its an iOS ...
0
votes
2
answers
203
views
SwiftUI's navigationBarItems leading and trailing buttons not showing in FamilyActivityPicker
I have the following View in SwiftUI to display FamilyActivityPicker:
import SwiftUI
import FamilyControls
struct FamilyActivityPickerView: View {
@State private var selectionToDiscourage = ...
0
votes
2
answers
87
views
Executing flow of the request in swift
I have three function inside the repository class . I am calling the function in order first createUser, then submitApplication and finally submitMemorableWord function . Condition is if the ...
0
votes
0
answers
61
views
Terminating app due to uncaught exception 'Attempt to call unavailable initializer
I have a view controller with a button. Once clicked, a new view controller is suppose to be presented.
CropperViewController
@IBAction func cropImageAction(_ sender: AnyObject) {
...
-3
votes
1
answer
44
views
A viewcontroller(vca) and another vcb, I need to add vcb.view to vca.view as a subview
Here is a viewcontroller(vca) and another vcb, I need to add vcb.view to vca as a subview.
but I did not use addChildViewController, instead, I directly calls [vca.view addSubview:vcb.view], and vcb's ...
1
vote
1
answer
88
views
UITableView not showing class array data
I am trying to create an app that gets the input of the user and fills a class, then afterwards stores that data on an array that I want to retrieve and populate a UITableView.
My issue is that I can'...
0
votes
1
answer
30
views
Why will updateScore function in viewcontroller not call from gamescene
So I'm trying to make it so an ad will pop up every time the score in game scene reaches a certain point in my game in Xcode using Swift but it's not calling the function that does that(...
1
vote
1
answer
71
views
Swift Generic Types and Inheritance
I'm creating an app for iOS and I have a function in a view controller called MainVC that has to return another view controller. The view controller that this function has to return inherits from ...
0
votes
0
answers
60
views
View controller property layout top of each other
I have two view controller . In first view controller I have table view with cell and search bar on top . The second view controller I have back button to go back to first view controller. The problem ...
0
votes
0
answers
123
views
How to merge two view content using factory design pattern in swift
I am following factory design pattern . From the view model state response I am rendering the view. For movie details view I am rendering
MovieDetailsDisplayViewController.
view content.
Here is view ...
-1
votes
1
answer
121
views
Rendering two view controller content into single view [closed]
I want to display two view controller content into single view. I have created a common view controller and add two view content controller as child view inside the common view. But the problem when I ...
1
vote
1
answer
129
views
Adding two view controller content into single view
I am trying add two view controller content into single view. Here How I am trying to do it . First create one single view controller and then add the require view into private function then call into ...
0
votes
1
answer
74
views
How to open the desktop version of a link but using SafariServices
I want to open the desktop version of a link using SFSafariViewController. I have found solutions for how to use SFSafariViewController and separately for how to open the desktop version of a link but ...
0
votes
2
answers
117
views
Swift webview device token
I am testing in Swift to send notifications with Firebase and in general it's working. When i will send a notification to one user, i need the device token of this user. I guess this is not the same ...