All Questions
7,561
questions
0
votes
1
answer
21
views
Easing functions for using CADisplayLink
I need to manually animate something frame by frame in SwiftUI using CADisplayLink, which provides me frame to frame updates. For animating a value from a to b in a linear fashion, the implementation ...
0
votes
0
answers
26
views
UITableViewCell reload while scrolling the screen
I have this UITableView in my iOS chat application, I'm using NSFetchedResultsController to fetch new messages from Coredata and show them to the screen. Insert a new message to the bottom of the ...
0
votes
0
answers
33
views
Gesture event is not triggered on real device if view is outside of parent view bounds
I am facing an issue that occurs only on real device, specifically, I am trying to trigger gesture recognizer and expand the image with animation by tapping on image profile view which is inside of a ...
1
vote
2
answers
47
views
iOS bottom sheet with fraction detents UIKit
I would like to open bottom sheet with custom option and not medium or large detents.I checked in SwiftUI there is API called .fraction but couldn't find similar API in UIKit.
SwiftUI
Text("Detail"...
0
votes
0
answers
47
views
Maui iOS UIApplication.Main() throiwing exception
I have a Xamarin.Forms app that I am porting over to MAUI. The android version works and builds fine. The iOS has a persistant problem whereby Program.Main(args) throws an exception. The watchdog on ...
-1
votes
0
answers
18
views
When using NSCollectionLayoutSection.list, how to specific header height and cell item height?
I am using NSCollectionLayoutSection.list as follow.
private func layoutConfig() -> UICollectionViewCompositionalLayout {
let layout = UICollectionViewCompositionalLayout { section, ...
-2
votes
0
answers
43
views
How can I have two UIGestureRecognizers that detect pans with different amounts of fingers?
Say I have two UIPanGestureRecognizers, each on different UIViews, placed directly above each other.
If I wanted to have one only recognise pans with one finger, and another only those with two ...
-1
votes
0
answers
15
views
Implementing Sticky Headers with UICollectionView: Choosing Between NSDiffableDataSourceSectionSnapshot and NSDiffableDataSourceSnapshot
NSDiffableDataSourceSectionSnapshot has no knowledge of "Section".
It only knows the parent item (first item) and child items (rest of the items).
Therefore, we can only use
layoutConfig....
-4
votes
0
answers
51
views
Why isn't CADisplayLink Sendable?
I'm looking at the this SoF answer and when I tried it out, I got the warning:
Non-sendable type 'CADisplayLink?' returned by implicitly asynchronous call to nonisolated function cannot cross actor ...
0
votes
1
answer
24
views
Transfer gestures to view on other UIWindow?
I have a set-up in my iOS app where I have two UIScreens (and thus two UIWindows) - one on the device, and the other on an external display.
I want the user to be able to make a gesture on their ...
-1
votes
0
answers
18
views
Customizing Drop Location View in UICollectionView Drag and Drop
Currently, this is how I implement the drag and move operation:
collectionView.beginInteractiveMovementForItem
collectionView.updateInteractiveMovementTargetPosition
collectionView....
1
vote
1
answer
30
views
How Driver in RxSwift doe't make circular reference
I'm student studying ios developer
I wonder how Driver doen't make circular reference?
below two codes show different result
// viewController deinit
publishRelay
.asDriver(onErrorJustReturn: &...
0
votes
0
answers
59
views
How to override animation logic in SwiftUI
I'm confused about how animations work in SwiftUI. Functionally, I know wrapping a change inside withAnimation block will cause the change to be animated but exactly how that's achieved underneath is ...
0
votes
1
answer
35
views
AutoFill password into UITextField
I want to implement such a function: a password UITextField, using the system Jiugongge numeric keypad(textField.keyboardType = .numberPad), and enable to automatically fill the password. like this:
...
-1
votes
2
answers
97
views
+50
Check iPhone vs iPad device type on background thread
I have this code:
public enum DeviceUtil {
public static var isPhone: Bool {
return UIDevice.current.userInterfaceIdiom == .phone
}
}
And I got warning saying UIDevice API has to be on the ...