Post

Replies

Boosts

Views

Activity

Reply to Visualisation Revisited playground
You haven't shown the errors messages. Show what you've tried, what you expected to happen, what actually happened. Please post code as text (formatted as a code block), it makes it easier for us to quote later - screenshots are only useful for graphics. From the screenshot "makePieChart" creates an instance of a PieChartView named pieChartView". Which suggests there is some code somewhere which calls makePieChart and names the resulting view, like this: let pieChartView = makePieChart() "PieChartView has one property named wedges, an array of PieWedgeInstances. Assign an array pieChartView.wedges = [ PieWedge(proportion: 3, color: .black, scale: 0.5, offset: 0.5), PieWedge(proportion: 3, color: .black, scale: 0.5, offset: 0.5), PieWedge(proportion: 3, color: .red) ] or use the append method of Array to add them one at a time pieChartView.wedges.append(PieWedge(proportion: 3, color: .black, scale: 0.5, offset: 0.5)) pieChartView.wedges.append(PieWedge(proportion: 3, color: .black, scale: 0.5, offset: 0.5)) pieChartView.wedges.append(PieWedge(proportion: 3, color: .red) I hope this helps. Stick at it!
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’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
Jan ’23
Reply to Visualisation Revisited playground
You haven't shown the errors messages. Show what you've tried, what you expected to happen, what actually happened. Please post code as text (formatted as a code block), it makes it easier for us to quote later - screenshots are only useful for graphics. From the screenshot "makePieChart" creates an instance of a PieChartView named pieChartView". Which suggests there is some code somewhere which calls makePieChart and names the resulting view, like this: let pieChartView = makePieChart() "PieChartView has one property named wedges, an array of PieWedgeInstances. Assign an array pieChartView.wedges = [ PieWedge(proportion: 3, color: .black, scale: 0.5, offset: 0.5), PieWedge(proportion: 3, color: .black, scale: 0.5, offset: 0.5), PieWedge(proportion: 3, color: .red) ] or use the append method of Array to add them one at a time pieChartView.wedges.append(PieWedge(proportion: 3, color: .black, scale: 0.5, offset: 0.5)) pieChartView.wedges.append(PieWedge(proportion: 3, color: .black, scale: 0.5, offset: 0.5)) pieChartView.wedges.append(PieWedge(proportion: 3, color: .red) I hope this helps. Stick at it!
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to CoreMediaIO Camera Extension: custom properties?
nullmc - yes, I've encountered this situation. Only numbers, data and strings are supported. Arrays and dictionaries are not.
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Feb ’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
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 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 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 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 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 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 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 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 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 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 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