Post

Replies

Boosts

Views

Activity

Reply to Sendig UDP packets with specified local port
I might be completely wrong here, but it looks like you can do this line differently connection = NWConnection(host: host, port: port, using: .udp) the last parameter doesn't need to be fixed as .udp, the default udp parameters. You can make new NWParameters and alter the value of requiredLocalEndpoint. hth, and Happy New Year
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’22
Reply to Background video recording
Well, I'm not Apple, but I think it is unlikely that you'll ever hear a reason for their design decisions. What you'll usually hear is that if you want a feature, use the Feedback Assistant to request that feature - outline your use case, what you can do, what you can't do, why you would like to be able to do it. Often, decisions like these are made to improve the overall user experience of the phone; it is quite easy to drain the battery rapidly if you leave. video recording on inadvertently. You may contend that the user should be made the final arbiter in this decision (it's my phone, and I'll drain the battery if I want to!), and that is so on other platforms, but this is Apple's design and Apple make the rules.
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’22
Reply to XCode 14.2 randomly crashes often since update to Ventura
If Xcode itself is crashing, file a bug, this will tell you how. https://developer.apple.com/bug-reporting/ If your program is crashing, and you want help on this forum, you'll want to post relevant code samples, after you've gone some way to investigate the problem yourself. Start here. https://developer.apple.com/documentation/xcode/diagnosing-and-resolving-bugs-in-your-running-app
Jan ’23
Reply to Sendig UDP packets with specified local port
I might be completely wrong here, but it looks like you can do this line differently connection = NWConnection(host: host, port: port, using: .udp) the last parameter doesn't need to be fixed as .udp, the default udp parameters. You can make new NWParameters and alter the value of requiredLocalEndpoint. hth, and Happy New Year
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Background video recording
Well, I'm not Apple, but I think it is unlikely that you'll ever hear a reason for their design decisions. What you'll usually hear is that if you want a feature, use the Feedback Assistant to request that feature - outline your use case, what you can do, what you can't do, why you would like to be able to do it. Often, decisions like these are made to improve the overall user experience of the phone; it is quite easy to drain the battery rapidly if you leave. video recording on inadvertently. You may contend that the user should be made the final arbiter in this decision (it's my phone, and I'll drain the battery if I want to!), and that is so on other platforms, but this is Apple's design and Apple make the rules.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Im interested to make HomeKit enabled accessory
I suggest you file a bug with Feedback Assistant for the documentation at the link https://mfi.apple.com/en/who-should-join.html, asking for Apple to fix the link or to clarify the situation for non-commercial development.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to MacOS Ventura Python version?
I followed the instructions at https://opensource.com/article/19/5/python-3-default-mac#what-to-do which basically say install and use pyenv with homebrew.
Replies
Boosts
Views
Activity
Jan ’23
Reply to Need some explanation with Xcode Builds
have you found this post: Packaging Mac Software for Distribution ?
Replies
Boosts
Views
Activity
Jan ’23
Reply to App crash on launch only in Ireland
You tested on a phone with language, calendar, date and time etc set appropriately for Ireland?
Replies
Boosts
Views
Activity
Jan ’23
Reply to Wired spacing between rows when using LazyVGrid
change your text in the CardView from Text(content) .font(.largeTitle) to Text(content) .font(.largeTitle).frame(maxHeight: .infinity) embarrassingly, I can't remember why that does the trick.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to XCode 14.2 randomly crashes often since update to Ventura
If Xcode itself is crashing, file a bug, this will tell you how. https://developer.apple.com/bug-reporting/ If your program is crashing, and you want help on this forum, you'll want to post relevant code samples, after you've gone some way to investigate the problem yourself. Start here. https://developer.apple.com/documentation/xcode/diagnosing-and-resolving-bugs-in-your-running-app
Replies
Boosts
Views
Activity
Jan ’23
Reply to Error while compiling in VS Code but not in Xcode
You might get more help asking where people are using VSCode. Most of the folks on this Apple forum are using tools provided by Apple, while you're asking about a problem with a Microsoft tool. Have you set up your VSCode correctly for C++? See https://code.visualstudio.com/docs/cpp/config-clang-mac.
Replies
Boosts
Views
Activity
Jan ’23
Reply to Can defaults command on macOS read app group preferences?
maybe the domain isn't quite what you expect it to be. Have you tried grepping the output of "defaults domains" to see if this is the case?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Xcode 14.2 editor mis-parses Swift extended delimiter string with backslash at end
what is the question here? You can file bugs using Feedback Assistant.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Problems with ForEach, SwiftUI
your view model is publishing an array (a random access collection of artworks), but your ArtworkGridView declares a single var artwork: Artwork . You're asking ForEach to iterate over something that isn't a collection.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Can defaults command on macOS read app group preferences?
I experimented a bit with this. It looks like the domains listed by defaults domains never go away, even after a restart. defaults delete <domain> and defaults write <domain> { } have the same effect. After execution, defaults read <domain> returns "domain does not exist", and in both cases, is still listed by defaults domains
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Why AVCaptureDevice.setExposureModeCustom deteriorate overexposed image on iPhone 13
I think that before you point the finger at your software, you should user your iPhone 13 with a third-party photo app to see how that phone deals with overexposed images borrow another iPhone 13 and see what it does (with a third-party app, and with your own)
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to closure containing a declaration cannot be used with result builder 'ViewBuilder'
please re-post your code inside a code block (use the formatting tools at the bottom of the text entry field). It is too difficult for anyone to read it formatted this way. Also, tag your post with the platform you are developing for (macOS, iOS, watchOS, iPadOS, tvOS)
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’23