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

All Questions

Tagged with
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 ...
bli00's user avatar
  • 2,541
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 ...
YosiFZ's user avatar
  • 7,872
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 ...
Andrew's user avatar
  • 25
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"...
Rock's user avatar
  • 1,498
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 ...
Matt_Ba's user avatar
-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, ...
Cheok Yan Cheng's user avatar
-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 ...
David's user avatar
  • 117
-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....
Cheok Yan Cheng's user avatar
-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 ...
bli00's user avatar
  • 2,541
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 ...
David's user avatar
  • 117
-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....
Cheok Yan Cheng's user avatar
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: &...
Choijun0's user avatar
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 ...
bli00's user avatar
  • 2,541
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: ...
Shilai Zhang's user avatar
-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 ...
OMGPOP's user avatar
  • 1,308

15 30 50 per page
1
2 3 4 5
505