Questions tagged [swiftui-scrollview]

For questions about ScrollView - a view in Apple's SwiftUI framework that is scrollable. When using this tag also include the more generic [swiftui] tag where possible.

Links:

127 questions
0
votes
0 answers

How do I add a zoomable SVG to SwiftUI?

I have a map that I want to put into my app, and I am currently learning SwiftUI. I want to put in an SVG where I can scroll, zoom, set initial x & y coordinates / initial zoom, max zoom, and tap on an element to open a page. I know I can do this…
0
votes
1 answer

Combining and Breaking a Vertical scrollView Horizontally in SwiftUi?

does anyone have an idea how can i break Vertical ScrollView into small horizontal ScrollView using SwiftUi: I have the code bellow which displays the youtubeResults vertically, since each item of the ForEach is smaller, so i want to group them by…
0
votes
1 answer

Cannot convert value of type 'TaskElement' to expected argument type 'EnvironmentObject'

I have set my TaskElement model to be an environmentObject to be able to edit tasks. I did like this to be able to edit tasks on the same page to create a new task. Which is called NewTaskView. Btw, I also get an error in this NewTaskView_Previews…
Mert Köksal
  • 817
  • 1
  • 7
  • 26
0
votes
1 answer

Swipe for options swiftUI scrollview

forgive me if this question has been asked before I did a quick search a couldn't find the answer. I'm creating an app in which a user can receive a friend request and I want the user to be able to swipe to the left to show different options to…
Dayton
  • 11
  • 3
0
votes
0 answers

Two Text inside a ScrollView that Fit to the content of the Texts

I have two Text in a VStack. Both texts can grow to an unlimited amount of lines. I want that if the text grows more than the screen I can scroll and see all the content. Mi first approach: var body: some View { VStack(alignment: .center,…
Andres
  • 11,439
  • 12
  • 48
  • 87
-2
votes
0 answers

List vs ScrollView [SwiftUI]

Hey iOS developers, I want to use only one component to list everything, therefore, I created a list of advantages and disadvantages of List and ScrollView and they depend on my experiences. Do you have any advice or solutions for their…
-2
votes
1 answer

Why is scrollTo working on Int and not Message custom object type?

I tried the same code with an Int instead of messages, it worked. When I try and use the message object, for some reason it's not liking it. Even though the .id is UUID(). The messages appear in scrollView and can be scrolled manually although it's…
Osydon
  • 3
  • 2
1 2 3
8
9