Skip to content
archive

stack-overflow-swift-questions-2026-05-15

Swift · · 7 min read

Title: Newest 'swift' Questions

URL Source: http://stackoverflow.com/questions/tagged/swift?tab=newest

Markdown Content:

Newest 'swift' Questions - Stack Overflow

Skip to main content

  1. About

  2. Products

  3. For Teams

  4. Stack Internal Implement a knowledge platform layer to power your enterprise and AI tools.

  5. Stack Data Licensing Get access to top-class technical expertise with trusted & attributed content.

  6. Stack Ads Connect your brand to the world’s most trusted technologist communities.

  7. Releases Keep up-to-date on features we add to Stack Overflow and Stack Internal.

  8. About the companyVisit the blog

Loading…

*   [Tour Start here for a quick overview of the site](http://stackoverflow.com/tour)
*   [Help Center Detailed answers to any questions you might have](http://stackoverflow.com/help)
*   [Meta Discuss the workings and policies of this site](https://meta.stackoverflow.com/)
*   [About Us Learn more about Stack Overflow the company, and our products](https://stackoverflow.co/)

current community

*   [Stack Overflow](https://stackoverflow.com/) [help](https://stackoverflow.com/help)[chat](https://chat.stackoverflow.com/?tab=explore) 
*    [Meta Stack Overflow](https://meta.stackoverflow.com/)

your communities

Sign up or log in to customize your list.

more stack exchange communities

company blog

  1. Log in

  2. Sign up

  3.   1.   [Home](http://stackoverflow.com/)
    
    1. Questions

    2. AI Assist

    3. Tags

    4. Challenges

    5. Chat

    6. Articles

    7. Users

    8. Companies

    9. Collectives

    10. Communities for your favorite technologies. Explore all Collectives

  4. Stack Internal Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.

Try for freeLearn more 3. Stack Internal 4. Bring the best of human thought and AI automation together at your work. Learn more

Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Stack Internal

Knowledge at work

Bring the best of human thought and AI automation together at your work.

Explore Stack Internal

336,201 questions

NewestActiveBountiedUnansweredMore

Filter

Filter by

  • [x]

No answers

  • [x]

No upvoted or accepted answers

  • [x]

No Staging Ground

  • [x]

Has bounty

Days old

Sorted by

Newest

Recent activity

Highest score

Most frequent

Bounty ending soon

Trending

Most activity

Tagged with

My watched tags

The following tags:

Apply filter

Cancel

0 votes

0 answers

8 views

CBCentralManager delegate never fires on iOS 26, auth status returns 0 but permission dialog never appears

I'm trying to scan for BLE devices using CoreBluetooth on iOS 26.5. The permission dialog never appears and centralManagerDidUpdateState never fires, despite CBCentralManager.authorization returning 0 ...

Image 5: bn hao's user avatar

bn hao

  • 1

asked 18 mins ago

0 votes

0 answers

58 views

SwiftUI Transferable with FileRepresentation inconsistent share results

I have a ShareLink in my SwiftUI view to share a custom Transferable type, and it is mostly working correctly, but when I choose different options in the share sheet, I get some different behaviors. ...

Image 6: RL2000's user avatar

RL2000

  • 1,160

asked yesterday

1 vote

0 answers

99 views

How can I dynamically load xcframeworks only when they are used, not at the start of the app?

I am distributing a proprietary iOS SDK as a binary xcframework. The SDK includes some features that require other, external dependencies (also xcframeworks) to work. The external dependencies are ...

Image 7: Sweeper's user avatar

Sweeper

  • 295k

asked 2 days ago

0 votes

3 answers

106 views

How to achieve the UI of the search tab in the App Store in Swift?

I am trying to make a view whose header section looks just like the one used in the App Store's search tab but I am unable to do so. I can't use .navigationTitle because it scrolls as the user scrolls ...

Image 8: Seeker's user avatar

Seeker

  • 282

asked 2 days ago

Best practices

0 votes

1 replies

73 views

How do you make directories

I'm making a menu to allow users to kind of "flow" to certain guides or big text blocks. Because directories are inherently hierarchical, I know I need a tree structure. However, my starting ...

Image 9: Ryan Bae's user avatar

Ryan Bae

  • 1

asked 2 days ago

-4 votes

1 answer

76 views

How do apps like Alarmy handle AlarmKit volumes? [closed]

I am currently building an app, as an alternative to Alarmy, since I have a hard time waking up in the morning. I have tried building with AlarmKit, with an active AVAudioSession maintained in the ...

Image 10: E.Andersson's user avatar

E.Andersson

  • 43

asked 2 days ago

Best practices

0 votes

1 replies

83 views

How to detect app install source / deferred deep link on Android (Kotlin) and iOS (Swift) after web popup campaign login?

I’m developing a mobile app for both Android (Kotlin) and iOS (Swift), and I need to identify where the app installation came from. Use case On the website, we show a popup like: “Install the app and ...

Image 11: Nguyễn Đức Thành's user avatar

Nguyễn Đức Thành

  • 388

asked May 12 at 4:20

0 votes

0 answers

54 views

Unknown Error code 1032 from Apple Intelligence

I'm using Apple intelligence to power suggestions to user of my app. It's a great feature but I'm baffled about this error. Domain=FoundationModels.LanguageModelSession.GenerationError Code=-1 "(...

Image 12: Jon Vogel's user avatar

Jon Vogel

  • 5,724

asked May 11 at 3:01

Advice

0 votes

4 replies

95 views

Need screentime data (swift) to be sent to firebase then accountability partner device

So i'm building a screentime app whereby users can add an accountability partner who will be able to see their total screentime.(no app breakdowns included) . This will require me to send the data to ...

Image 13: Aishah Hamman's user avatar

Aishah Hamman

  • 43

asked May 8 at 10:05

-5 votes

0 answers

96 views

Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution [closed]

I'm keeping most information in an actor and I would like to save also a closure in it that I get from func application( _ application: UIApplication, ...

Image 14: Fabrizio Bartolomucci's user avatar

Fabrizio Bartolomucci

  • 11

asked May 7 at 14:18

Best practices

0 votes

2 replies

50 views

Is it possible to set-up a build setting from a pre-action/build phase in Xcode?

I'm not sure what's the best practice around here but essentially the problem I have is I want to have a tool that generate a path (an unix domain socket) and set it in ...

Image 15: corujautx's user avatar

corujautx

  • 45

asked May 6 at 12:14

2 votes

1 answer

130 views

Liquid Glass UIButton Tint(background) Color

On SwiftUI, you could achieve a tinted glass button by creating a custom button style struct SomeButtonPreview: View { var body: some View { ZStack { LinearGradient( ...

Image 16: Farhandika Guenia's user avatar

Farhandika Guenia

  • 19

asked May 6 at 10:53

1 vote

1 answer

106 views

Conflict between "Approachable concurrency" vs "nonisolated(nonsending) by Default" vs "Default actor isolation" settings in Xcode

Based on this article, "approachable concurrency" means using main actor by default, and use nonisolated(nonsending) by default. However, in Xcode, there are both "default actor ...

Image 17: HL666's user avatar

HL666

  • 548

asked May 5 at 17:56

0 votes

2 answers

140 views

Does "nonisolated(sending) by Default" setting conflict with "Default actor isolation" setting in Xcode 26?

Before Xcode 26, we have 2 global functions: func syncMethod() {} func asyncMethod() async {} The behavior is that syncMethod is non-isolated, and will be called in the same isolation context as the ...

Image 18: HL666's user avatar

HL666

  • 548

asked May 5 at 17:44

0 votes

1 answer

73 views

DispatchQueue's closure is @Sendable, how can it access main actor isolated values?

Let's first try this code: func viewDidLoad() { DispatchQueue.global().async { self.view.backgroundColor = red } } This obviously fails in Swift 6, because the closure is @Sendable , meaning ...

Image 19: HL666's user avatar

HL666

  • 548

asked May 5 at 16:18

153050per page