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

All Questions

Tagged with
0 votes
0 answers
15 views

Lagging Video Feed Using VNGeneratePersonSegmentationRequest in macOS Camera Extension App

I'm developing a macOS application using Swift and a camera extension. I'm utilizing the Vision framework's VNGeneratePersonSegmentationRequest to apply a background blur effect. However, I'm ...
Yogeshwar Shelke's user avatar
1 vote
1 answer
74 views

Multiline TextField not wrapping text correctly after width change

On macOS a multiline TextField does not wrap correctly after the TextField's width changes. I wonder if anyone knows if this is a bug or if there's something that needs to be done additionally on ...
iMaddin's user avatar
  • 992
2 votes
1 answer
36 views

How to share the same model container between WindowGroup and MenuBarExtra in SwiftUI?

I am working on a SwiftUI application where I need to share the same model container between a WindowGroup and a MenuBarExtra. The goal is to have both components update in sync without needing to ...
Lucas Buchalla Sesti's user avatar
0 votes
1 answer
38 views

Change Textfield placeholder color in SwiftUI on macOS

I am trying to set the placeholder color of a Textfield on macOS. I tried: TextField("", text: $text, prompt: Text("prompt")) .tint(.red) but that does not ...
Vojta Böhm's user avatar
0 votes
0 answers
20 views

Assertion Failure: Block Expected on Main Thread in Swift macOS App Using DispatchQueue [duplicate]

A user is experiencing a crash in my macOS app. It was written in Swift and developed using Xcode. The crash report indicates an assertion failure related to dispatch queues, specifically stating that ...
sameyes's user avatar
-1 votes
0 answers
33 views

Swift - Is it possible to programmatically obtain a list of the devices associated with an Apple account and synchronize device usage statistics?

I'm trying to develop an iOS application where I need to obtain a List of Devices Associated with an Apple Account. I want to develop it with react-native but I suppose that for some particular ...
lordav's user avatar
  • 193
0 votes
0 answers
20 views

Tint colour will not apply to sidebar of NavigationSplitView [duplicate]

My accent color (which is set to red) will not apply to the sidebar of my NavigationSplitView. So, I tried explicitly setting the tint color to red, and still it does not work. I did try setting other ...
hotwheel2007's user avatar
1 vote
0 answers
59 views

SwiftData rollback not updating the UI

I'm building a simple App using SwiftData. In my app a user can create, remove and edit posts. When editing, I want them to be able to hit "Save" to persist the changes or "Cancel" ...
alexortizl's user avatar
  • 2,555
0 votes
1 answer
57 views
+300

Mac menu bar app crashing on app launch as notarized app only: failed to get text offset for /Applications/... (#3) No such process

I am developing a macos menu bar app, and for some reason, when I archive, notarize & export the app to my Applications folder and run the app, it crashes instantly. When I use the Console app, I ...
N.K.'s user avatar
  • 483
1 vote
2 answers
42 views

Local Notification on MacOS is not working

I am trying to display banner notification on macOS swift app and the banner does not appear when running debug build in Xcode neither any new notification related my app is visible in the ...
Abdul Sami Sultan's user avatar
-2 votes
0 answers
17 views

Swift macos record selected portion [closed]

I want to do this effect on swift macos, is it possible? I'll appreciate someone available to give me the suggestion or the sample code, thank! Example the selection area i want I try to capture the ...
Web developer's user avatar
1 vote
0 answers
32 views

LaunchD spawning two instances of LaunchAgent

I have this application that is divided in 3 parts. A server that handles all the networking code A agent that handles all System related code A manager (NSApplication) to interact with the other two ...
Gama's user avatar
  • 374
0 votes
1 answer
28 views

How to Temporarily Disable Keyboard Input in a macOS Application?

I am working on a macOS application using Swift and Flutter, and I need to create a functionality to temporarily disable the keyboard input, similar to a "keyboard clean tool". I have ...
Fathurrohman's user avatar
1 vote
1 answer
42 views

Mount Network Drive SwiftUI

import SwiftUI struct ContentView: View { @State private var username: String = "" @State private var password: String = "" @State private var ...
munkimichi's user avatar
-1 votes
0 answers
82 views

Prevent activating the application when click on Dock icon [closed]

My main window is a Non-Activating panel. When I'm opening an app from menubar or using Global Hotkey - all works well. (window is unihidden, and deminimized and ordered front of all other windows -- ...
Andrew_STOP_RU_WAR_IN_UA's user avatar

15 30 50 per page
1
2 3 4 5
573