Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [swift]

Swift is a general-purpose programming language developed by Apple Inc first released in 2014 for its platforms and Linux. Swift is open-source. Use the tag only for questions about language features or requiring code in Swift. Use the tags [ios], [ipados], [macos], [watch-os], [tvos], [swiftui], [cocoa-touch], and [cocoa] for (language-agnostic) questions about the platforms or frameworks.

109,305 questions with no upvoted or accepted answers
55 votes
1 answer
8k views

SwiftUI UITableView was told to layout its visible cells and other contents without in view hierarchy

I have a list in a view (lets call it view A) where I push a view B via NavigationLink from view A and manipulate the CurrentSubjectValue to the initial view A. The moment the data is added and the ...
Congruent Tech. UG's user avatar
42 votes
2 answers
2k views

AVPlayer frame animation

I am developing an application that includes functionality to play a video with per-frame animation. You can see an example of this functionality. I already tried to add CAKeyFrameAnimation to a ...
rkyr's user avatar
  • 3,191
39 votes
0 answers
4k views

secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found

In two applications which have WatchKit app extensions, I receive the following error in the device log more than ten times on startup. secTaskDiagnoseEntitlements MISSING keychain entitlements: no ...
Justin Domnitz's user avatar
32 votes
1 answer
1k views

Instagram /tags/\(hashtag)/media/recent endpoint not returning pagination?

I've been trying to get this to work for probably 6 hours now to no avail, read every stackoverflow question I could find on the topic. I'm trying to get 100, 200, or maybe 500 photos from a single ...
shakked's user avatar
  • 803
29 votes
1 answer
1k views

GLKMatrix4 (and other similar) missing in swift?

I'm having an issue creating a 4X4 openGL matrix in swift. I have imported the following which worked in Obj-C: import UIKit import GLKit import OpenGLES GLKMatrix4 is not available, however I have ...
Daniel Rushton's user avatar
28 votes
3 answers
2k views

How can I save the fatalError message to the iOS crash log?

I have an iOS application written in Swift 2 in Xcode 8.2.1, that's built for iOS 10.2. I've had a number of crash reports from TestFlight and despite symbolication, none of the crash logs show any ...
Dai's user avatar
  • 151k
27 votes
0 answers
5k views

How to use modular headers configuration for pod dependency of my pod framework?

My podspec looks like this: Pod::Spec.new do |s| s.name = 'flutter_vlc_player' s.version = '0.0.3' s.summary = 'A new Flutter project.' s.description = <...
Amadeu Cavalcante Filho's user avatar
25 votes
0 answers
2k views

SwiftUI and Catalyst: [API] cannot add handler to 3 from 3 - dropping

After converting my SwiftUI project to Catalyst I get this strange error message on the console: [API] cannot add handler to 3 from 3 - dropping This happens when a view is scrolled, even in release ...
heiko's user avatar
  • 1,356
25 votes
1 answer
461 views

How to guide tvOS focus items for curved SKNodes

My tvOS app generates a game board using SKNodes that looks like the following: Each shape, separated by lines, is an SKNode that is focusable (e.g. each colored wedge is composed of 5 SKNodes that ...
Aaron's user avatar
  • 6,626
25 votes
1 answer
2k views

tvOS: Is there anyway to prevent the search keyboard from collapsing on scroll?

So I have a standard setup for setting up a search view in my tvOS app. let storyboard = UIStoryboard(name: "Main", bundle: nil) guard let resultsController = storyboard....
Programmer Unextraordinair's user avatar
24 votes
1 answer
2k views

FocusState changes in SwiftUI cause the keyboard to bounce

I'm making a sign-in interface for iOS in SwiftUI. The user should be able to easily switch from the username text field to the password text field by tapping the "next" button on the ...
Gadget's user avatar
  • 273
21 votes
0 answers
10k views

Error Domain=NSItemProviderErrorDomain Code=-1000 "Cannot load representation of type public.jpeg"

I am using PHPickerViewController for image picking from the photo library instead of UIImagePickerController. When I use this code I couldn't get the image from already picked image. Error Domain=...
Pradeep S's user avatar
  • 211
21 votes
1 answer
5k views

Swift 5 LLDB error: warning: <EXPR>:12:9: warning: initialization of variable '$__lldb_error_result' was never used

Full Error Message: error: warning: <EXPR>:12:9: warning: initialization of variable '$__lldb_error_result' was never used; consider replacing with assignment to '_' or removing it var $...
andrewbuilder's user avatar
20 votes
0 answers
3k views

Cell should never be in update animation (UICollectionView crash)

I've got Cell should never be in update animation crash in UICollectionView reported by crashlytics This crash happens only for users on iOS 14. It wasn't noticeable when the application used SDK iOS ...
Mikhail Maslo's user avatar
20 votes
0 answers
2k views

ApplePay error `Connection to remote alert view service failed` on iOS 13

I have a fully working implementation of ApplePay. all works well on iOS10, 11 and 12. Since the first beta of iOS 13 and Xcode 11 and up until now (iOS13GM and Xcode 11GM) the ApplePay authorization ...
Tal Cohen's user avatar
  • 1,437

15 30 50 per page
1
2 3 4 5
7287