Skip to main content

All Questions

Tagged with
0 votes
0 answers
28 views

How to change TurpleView<_VariadicView.Children> to Custom View?

Several Views were received as 'TurpleView<_VariadicView.Children>'. struct View1: View { var body: some View { VStack { Text("page!") } } } struct ...
OlderPeo's user avatar
0 votes
0 answers
36 views

Trying to use Custom URL for opening my app, APP Delegate is not working

I am using custom url, minimum iOS version is 10, so I am using App delegate. I declared the required thing is info.plist app, is opening fine but, I am not getting callback in logs through app ...
Nishtha Verma's user avatar
1 vote
1 answer
103 views

iOS 13 ObservedObject is not updating the UI while StateObject doing same in iOS 14

"Resolving UI Update Issues with iOS 13 ObservedObject: Exploring Alternatives to StateObject" "I've explored several alternatives for StateObject, which is only available in iOS 14. ...
Chaudharyyagh's user avatar
0 votes
1 answer
415 views

SwiftUI equivalent of UIStackView.Distribution.fillEqually

I'm trying to make a simple VStack in SwiftUI where each view in the stack has the same height. The heights should be equal to the least amount of space required for the biggest view in the stack. My ...
Cameron Porter's user avatar
0 votes
0 answers
308 views

using SwiftUI, when scrolling, VStack inside Section shrinks and expands

I'm trying to make simple testing app with Buttons and Options for Button action. target is iOS 13.0 for backward compatibility. expected smooth scroll just like other iOS app does, but it stutters. ...
Ggumdori's user avatar
1 vote
0 answers
115 views

App crashed with dyld`__abort_with_payload when using scollviewproxy and @available in iOS 13 SwiftUI

I am developing a new UI for my app and I am going from UIKit to SwiftUI. I want to be able to use a scrollViewProxy to manage my automatic scrolling when for example my view expands beyond the ...
NoosaMaan's user avatar
  • 128
1 vote
0 answers
341 views

SwiftUI different behavior on different iOS versions

I have been developing an app with minimum iOS 13, but whole development process was done on iOS 15. Now when testing the iOS 13 devices, I noticed some problems. Minimalistic example: You have a list ...
Robert Sudec's user avatar
-1 votes
2 answers
958 views

SwiftUI: Create a list of mx2 column grid of images on iOS 13 with single selection

I'm new to SwiftUI and I'm trying to display a list of images from API as mx2 grids on iOS 13. I was able to create the grid and also able to download the images. Now I have 2 issues, all cells are ...
Francis F's user avatar
  • 3,225
1 vote
2 answers
3k views

Xcode 12 project with iOS 13 SwiftUI support: SceneDelegate functions not invoked

I had created a project in Xcode 12 with iOS 14 as deployment target (bigger project). After some time I realized that I had to also be able to support iOS 13 devices. My project uses SwiftUI. It is ...
gosr's user avatar
  • 4,668
0 votes
1 answer
480 views

How can I use Core Data value from picker? #SwiftUI #CoreData

struct PickerView: View { var items0 : [PageName] @State var selectedPage: PageName? init(items0: [PageName]) { self.items0 = items0 self._selectedPage = State(initialValue: items0.first) } ...
Taeeun Kim's user avatar
  • 1,201
7 votes
2 answers
5k views

Swift UI: UIHostingController.view is not fit to content view size at iOS 13

I want to update Swift UI View according to the communication result. But UIHostingController.view is not fit rootView size at iOS 13. The same thing happens when I try with the sample code below. I ...
野瀬田 裕樹's user avatar
0 votes
1 answer
451 views

How to avoid app crash with TabView inside NavigationView when navigate backwards ios 13 SwiftUI

I'm using a TabView inside NavigationView but my app crashes when I try to navigate backwards, it shows this error message "Thread 1: EXC_BAD_ACCESS (code=2, address=0x16ad5bff0)" at ...
Sokina's user avatar
  • 67
4 votes
0 answers
1k views

SwiftUI Auto scroll - WITHOUT ScrollViewReader

I have a regular horizontal SwiftUI ScrollView, when the user clicks on a element, I want to ScrollView the focus on it (auto scroll to it so it becomes fully visible most left side on the ScrollView. ...
Tropicano's user avatar
  • 341
0 votes
1 answer
920 views

SwiftUI: Navigation Link crashes when tapping back on iOS 14 but not on iOS 13

I'm currently working on an application with login functionality to try out SwiftUI. The crash occurs on both the simulator and a real device. I can log in successfully and am able to get to the next ...
Michael Slattery's user avatar
1 vote
1 answer
605 views

TabView does not work correctly on iOS13 SwiftUI

I created a TabView with 4 items but with iOS 13.x only the first view is displayed correctly. When I click on another item's icon, the view is not shown correctly but the app only shows a white view. ...
zampi91's user avatar
  • 53

15 30 50 per page
1
2 3 4 5
14