Skip to main content

All Questions

Tagged with or
-3 votes
0 answers
70 views

I have this code: func drawCount() { Task { await _drawCount() } } func _drawCount() async { let k = await Task.detached(priority: .low) { return gfed.filter{$0.blah}....
Fattie's user avatar
  • 9,770
0 votes
0 answers
39 views

I'm running into a crash when trying to sync cookies from my app to a WKWebView HTTPCookieStore. The crash happens at the setCookie call inside an async function. I'm not sure why it's happening. The ...
jieun's user avatar
  • 1
-1 votes
2 answers
102 views

I have a Swift model using Codable, and my backend is inconsistent with date formats: Sometimes a date comes as ISO8601 string ("2025-09-30T04:00:00Z") Sometimes as a Unix timestamp (...
Muaaz Ahmed's user avatar
-3 votes
1 answer
66 views

We have a UX where the "paradigm" of a button is similar to this: so I want to exactly duplicate the look. Is this something standard available in UIKit, or is it just a UIButton that Apple ...
Fattie's user avatar
  • 9,770
-5 votes
1 answer
75 views

I had a custom UIView V which adds a stack view S with three labels L. It draws some CAShapeLayer lines. class CustomView: UIView { ///Consumers supply some texts and other info var input: [ ...
Fattie's user avatar
  • 9,770
-1 votes
1 answer
93 views

I just did this, 1, 5, 100, 2, 7 becomes 5, 100, 7 1, 2, 18, 19, 5, 4 becomes 2, 19, 5 extension Array where Element: Comparable { ///Simply return the bigger of each pair of (say) integers ...
Fattie's user avatar
  • 9,770
-1 votes
2 answers
68 views

Say you have a vertical collection view, you can add typical "springy" physics by incorporating UIDynamicAnimator in the UICollectionViewLayout. Simple example below. Now imagine just a ...
Fattie's user avatar
  • 9,770
-1 votes
2 answers
64 views

An extension ... fileprivate extension Optional { ///Do an upsert for one item - works on all groups mutating func upsert<T: MyProtocol>(item: T) where Wrapped == [T] { } } which ...
Fattie's user avatar
  • 9,770
0 votes
1 answer
62 views

When I have private lazy var aLine: RepairedCAShapeLayer { let v = RepairedCAShapeLayer() v.contentsScale = UIScreen.main.scale v.strokeColor = cfp.color.cgColor v.fillColor = nil ...
Fattie's user avatar
  • 9,770
0 votes
1 answer
96 views

Say struct Teste: Codable { let a: Int lazy var x: Int = { print("I just changed this Teste item") return a + 1000 }() } and you var hugeData: [Teste] // 750 ...
Fattie's user avatar
  • 9,770
0 votes
1 answer
79 views

I have a typical ... "user selects one row, all other rows go away, there is now only one row in the data source, the row's new position is (obviously) now the top and only row: row X slides up ...
Fattie's user avatar
  • 9,770
0 votes
1 answer
87 views

I have an iOS project with some async await functions. I update Swift Language Version setting in Xcode Build Settings to 4.2 and the project still able to compile. How Swift 4.2 knows how to compile ...
Igor Sorokin's user avatar
0 votes
1 answer
64 views

I am trying to implement a custom UISlider on an iOS device. First, the ThumbSlider is positioned on both ends, and the desired behavior is as follows: When the ThumbSlider moves left or right, the ...
정석영's user avatar
5 votes
0 answers
408 views

I have been using SecPKCS12Import to retrieve the kSecImportItemIdentity from a .p12 certificate. While this method works well on iOS 18.0, it returns an error code -25293 on iOS 17.5 or lower. I use ...
Xuân Tùng's user avatar
2 votes
1 answer
82 views

I often have something like .. enum DotNetType: String, CaseIterable { case guid = "Guid" case int = "Int32" case float = "Single" case dateTime = "...
Fattie's user avatar
  • 9,770

15 30 50 per page
1
2 3 4 5
209