Skip to main content

All Questions

Tagged with
0 votes
0 answers
9 views

iOS SwiftUI - frame size ignored when trying to resize GIF image

import SwiftUI import PhotosUI import AVKit import Swime import WebKit struct GifImage: UIViewRepresentable { enum URLType { case local(String) case remote(URL?) var url: ...
TheGreatCornholio's user avatar
-1 votes
0 answers
19 views

Embed custom SwiftUI views inside SwiftUI Text

I know in SwiftUI you can concatenate Text with other Text and also with Image but can this be done using custom views? For example I want to have buttons from time to time inside big paragraphs.
Boyan Pavlov's user avatar
0 votes
0 answers
8 views

Animating the frame of a custom video player in SwiftUI

I've built a custom video player using AVPlayer and AVPlayerLayer to play videos without showing the controls. The video plays fine, but I want to animate the player's frame size. This works smoothly ...
Berry Blue's user avatar
  • 16.2k
0 votes
0 answers
8 views

SplineView listen for even outside the 3d scene (in swift code)

I have added a simple test scene to my UIKit project import UIKit import SwiftUI import SplineRuntime class ViewController: UIViewController { @IBOutlet weak var myContainerView: UIView! ...
Oleksandr Matrosov's user avatar
0 votes
0 answers
14 views

iOS 17.4 + version bug when copying and pasting HTML (rich) text

we have created a function that is expanding copy module to support html format. Everything inside that function works fine but on 17.4+ iOS versions copying the html element strike-through <s>...
Andrija Milicevic's user avatar
0 votes
1 answer
28 views

SwiftUI animate multiple lines of text

How can I animate lines of text in order to achieve the animation seen here in the notes app: https://imgur.com/a/eC62tmJ The height of the text gradually increases during the animation while also ...
batman's user avatar
  • 2,375
0 votes
1 answer
19 views

How do I make iOS Homescreen widgets have consistent padding

I'm trying to design a homescreen widget but I am unable to properly control the padding and sizing of various components. In the four attached screenshots you can see the huge variation in padding ...
Craig's user avatar
  • 8,199
0 votes
0 answers
126 views

Xcode 16 Slow After iOS 18 Update, NavigationLink Not Working [closed]

After updating Xcode to version 16 for iOS 18, I noticed severe performance issues, especially with SwiftUI previews. In addition, there seems to be an increase in bugs in my app, with one major issue ...
Günseli Ünsal's user avatar
-5 votes
2 answers
112 views

Array showing incorrect data in SwiftUI sheet

Here's the code import SwiftUI struct MyView: View { @State private var Items = ["Apple", "Microsoft", "Google"] @State private var presentSheet = Bool() var body: ...
Victor Vaknin Otte Hansen's user avatar
1 vote
0 answers
25 views

What is purpose of pushToStartTokenUpdates in iOS live activity

I'm experiencing difficulty obtaining the pushToStartToken required to start live activities from APNS. Although I have subscribed to pushToStartTokenUpdates, I'm not receiving any updates Here is the ...
user27367982's user avatar
-3 votes
0 answers
34 views

Apple Watch Battery Drain Issue with HealthKit Framework – Seeking Solutions [closed]

I'm working on an Apple Watch app that uses the HealthKit framework, and I'm experiencing significant battery drain issues. Specifically, the battery percentage sometimes drops from 100% to 60% ...
muhammad tayyab's user avatar
0 votes
1 answer
25 views

Image ratio and filling keep changing instead of remaining the same

I am building an app with a feed. I was able to have the feed working but each item in the feed is not rendering correctly. depending on the image, the item is more/less changing as shown below: Image ...
Seb's user avatar
  • 3,169
1 vote
1 answer
32 views

SwiftUI: Shape using bezier curve cannot fill with gradient

Thanks for the help, this happened after I updated my Xcode to 16.0 today. struct TestGradientPath: View { @State private var startPoint: CGPoint = .zero @State private var endPoint: CGPoint = ...
Zeng Chris's user avatar
0 votes
0 answers
26 views

SwiftUI Speak function using AVSpeechSynthesizer is not working

I am using AVSpeechSynthesizer to speak some message in SwiftUI. Below is my View: let speechSynthesizer = AVSpeechSynthesizer() var body: some View { ScrollView{ VStack { ...
sats's user avatar
  • 163
0 votes
0 answers
30 views

SwiftUI Video Player not scaling

I've been banging my head on the wall with this one for a while. I have a videoPlayer, embedded in a zStack, embedded in a scrollview. The videoPlayer stays at a static 9:16 aspect ratio, always. When ...
psettle41's user avatar

15 30 50 per page
1
2 3 4 5
828