Questions tagged [swiftui-image]
5 questions
1
vote
0 answers
How do you animate a lock screen widget on iOS 16?
In iOS 16, Lock screen widgets allow you to add an Image to the WidgetView, like in accessoryCircular.
How do you animate this Image? Loading the Image from an animated UIImage with frames just displays the first frame.
Am I missing a startAnimating…

Erika Electra
- 1,854
- 3
- 20
- 31
0
votes
1 answer
Prevent ScrollView from Shrinking Content SwiftUI
I have a Horizontal ScrollView with some Content received from an API. However, when I scroll the Content, after a certain amount of Scrolling, the content shrinks. Is there a way to prevent this? The 2nd Image shows the content Shrinking after…

Amey079
- 131
- 7
0
votes
1 answer
Pin symbols to a pan and zoomable Image @ fixed location. Pins incorrectly placed when zoomed in
I want to be able to place pins (symbols for now) on a user selected Image. The image should be pan-able and zoomable. The pins should stick to their location (pixels) relative to the underlying image. I got this working using a ScrollView by way of…

DeveloperSammy
- 167
- 1
- 11
0
votes
0 answers
SwiftUI: How can i allow user to drag filled image in a TabView page while keep change page gesture
I'm using TabView with page style to show a list of Images:
Reader.swift
...
TabView(selection: self.$archivePageModel.currentIndex) {
ForEach(pageOrder(totalPage: archivePageModel.pages.count), id: \.self) { index in
PageImage(id:…

Doraemoe
- 129
- 2
- 11
0
votes
0 answers
Removing an image in SwiftUI
I am working on a chess game in SwiftUI and I need a way to remove images (pieces) from board. Each pieces is created with the following code.
GeometryReader { geo in
Image(name)
.resizable()
.frame(width: CGFloat(cellSize), height:…

Rich64
- 1