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.
swift
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 = <...
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 ...
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 ...
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....
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 ...
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=...
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 $...
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 ...
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 ...