Post

Replies

Boosts

Views

Activity

Reply to Skadnetwork
You were literally told to report this via the Feedback Assistant, but you chose to post it to the Developer Forums? Please post it here instead: https://feedbackassistant.apple.com/ and remove all the irrelevant cruft that looks like it was a reply in an email.
Jan ’25
Reply to macOS dark mode while window is in background
Isn't there a method in the app delegate in which you should set this up, so trait change or something? Then fire off a notification to make the change? Also, I think you can shorten and simplify this code a little (written in a text editor and may not be 100% correct): NSAppearance *appearance = NSApp.mainWindow.effectiveAppearance; NSAppearanceName basicAppearance = [appearance bestMatchFromAppearancesWithNames:@[ NSAppearanceNameAqua, NSAppearanceNameDarkAqua ]]; if([basicAppearance isEqualToString:NSAppearanceNameDarkAqua]){ theme = "Adwaita:dark"; dark_mode = TRUE; } switch(appearance.name) { case NSAppearanceNameDarkAqua: case NSAppearanceNameVibrantDark: theme = "Adwaita:dark"; dark_mode = TRUE; break; case NSAppearanceNameAccessibilityHighContrastAqua: theme = "HighContrast"; break; case NSAppearanceNameAccessibilityHighContrastDarkAqua: case NSAppearanceNameAccessibilityHighContrastVibrantDark: theme = "HighContrast:dark"; dark_mode = TRUE; break; default: theme = "???"; }
Topic: UI Frameworks SubTopic: AppKit Tags:
Jan ’25
Reply to VStack Alignment Issue
I think you're misunderstanding what the alignment parameter does in a VStack. It aligns the subviews in the stack, not the stack itself. Here's a visual example: import SwiftUI struct ContentView: View { var body: some View { VStack(alignment: .leading) { Image(systemName: "arrow.2.circlepath") .colorInvert() .font(.system(size: 30)) .border(Color.yellow) Text("alignment: .leading") .font(.system(size: 20)) .foregroundStyle(Color.white) .border(Color.yellow) } .frame(maxWidth: .infinity) .background(Color.black) VStack(alignment: .trailing) { Image(systemName: "arrow.2.circlepath") .colorInvert() .font(.system(size: 30)) .border(Color.yellow) Text("alignment: .trailing") .font(.system(size: 20)) .foregroundStyle(Color.white) .border(Color.yellow) } .frame(maxWidth: .infinity) .background(Color.green) HStack { VStack(alignment: .leading) { Image(systemName: "arrow.2.circlepath") .colorInvert() .font(.system(size: 30)) .border(Color.yellow) Text("alignment: .leading in an HStack") .font(.system(size: 20)) .foregroundStyle(Color.white) .border(Color.yellow) } Spacer() // <<-- Remove this line and see the difference } .frame(maxWidth: .infinity) .background(Color.blue) } } #Preview { ContentView() } In the blue section, where I've said to remove the line with the Spacer() this is to show you the effect of using an HStack, which is what I think you want. The HStack simply lines up views horizontally, and when you add in a Spacer() it pushes the content along, so this pushes the text to the left: |SOME TEXT HERE<---Spacer()--->| This pushes the text to the right: |<---Spacer()--->SOME TEXT HERE| and this spreads it out: |SOME<---Spacer()--->TEXT<---Spacer()--->HERE|
Topic: UI Frameworks SubTopic: SwiftUI
Jan ’25
Reply to Preselect PhotoPickerItems from Image when reopening PhotosPicker
I haven't run through that sample project myself, but looking at the code is there anything inside profileImage that you can store alongside the image? So, if profileImage.image is the image data itself, which is what you're storing in MyEntity, is there an identifier in profileImage that you can also store in MyEntity as MyEntity.imageId? Some sort of UUID string? If so, store it, then check for that when you want to pre-select images.
Jan ’25
Reply to Add custom emoji tags
These are the Developer Forums, where developers of third-party apps for Apple's platforms ask each other for hints and tips on coding. These forums are not where Apple's actual developers chat about new features. If you have a suggestion, you should raise it at: https://www.apple.com/feedback/
Jan ’25
Reply to Shocked by Apple Developer Program Experience – Account Banned Without Explanation
Whilst the Review Team may not always provide "actionable feedback", I doubt they're out to stop apps being released the App Store. That wouldn't make any sense. More likely is that there is a real reason why your apps were rejected, and perhaps, in your frustration, you got a little heated and had a go at them? That's probably why you were banned? What reasons did they actually provide for the rejections? You can copy & paste them here if you like.
Jan ’25
Reply to Question on Developer Membership?
You don't even need a membership to develop apps; you only need it when you're going to release an app or make use of various resources, so you could start developing the app now and use a versioning system like Git to collaborate. Then, when you're ready, you can start one membership, and just have multiple team members.
Jan ’25
Reply to Content blocker not removing content
Is no one writing content blocker rules anymore? Anyone at Apple know how to handle this? You guys wrote the content blocker framework; you must have examples of how to use it? This page: https://developer.apple.com/documentation/safariservices/creating-a-content-blocker only has one example, and doesn't cover much at all. Searching the internet seems to just return info on how the various adblocker apps work - including using their own internal methods (-abp-has(> div > img.advert) etc.), which Safari cannot use. If we cannot select elements by the text they contain, then content blockers in Safari are severely hampered. What if I don't want to see news stories about football? Unless the alt tag of an img has the word 'football' in it, I can't block it, and I can't block something as simple as this: <a href="/pages/sport/thebiggame/">Football</a>.
Topic: Safari & Web SubTopic: General Tags:
Jan ’25
Reply to I get an error message when I try to enroll in the Apple Developer Account
No need for your duplicate post.
Replies
Boosts
Views
Activity
Jan ’25
Reply to Unable to sign in to sandbox StoreKit test accounts (iOS)
Same issue here. Makes developing an in-app purchase impossible.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jan ’25
Reply to Skadnetwork
You were literally told to report this via the Feedback Assistant, but you chose to post it to the Developer Forums? Please post it here instead: https://feedbackassistant.apple.com/ and remove all the irrelevant cruft that looks like it was a reply in an email.
Replies
Boosts
Views
Activity
Jan ’25
Reply to Handling non-consumable in-app purchase tiers
I've decided to go for the simple life, and just have one tier. I really don't ever want anyone to feel like they've been screwed over by paying $1.99 then another $3.99 when they only needed to pay $3.99. I'll never be a billionaire at this rate.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jan ’25
Reply to macOS dark mode while window is in background
Isn't there a method in the app delegate in which you should set this up, so trait change or something? Then fire off a notification to make the change? Also, I think you can shorten and simplify this code a little (written in a text editor and may not be 100% correct): NSAppearance *appearance = NSApp.mainWindow.effectiveAppearance; NSAppearanceName basicAppearance = [appearance bestMatchFromAppearancesWithNames:@[ NSAppearanceNameAqua, NSAppearanceNameDarkAqua ]]; if([basicAppearance isEqualToString:NSAppearanceNameDarkAqua]){ theme = "Adwaita:dark"; dark_mode = TRUE; } switch(appearance.name) { case NSAppearanceNameDarkAqua: case NSAppearanceNameVibrantDark: theme = "Adwaita:dark"; dark_mode = TRUE; break; case NSAppearanceNameAccessibilityHighContrastAqua: theme = "HighContrast"; break; case NSAppearanceNameAccessibilityHighContrastDarkAqua: case NSAppearanceNameAccessibilityHighContrastVibrantDark: theme = "HighContrast:dark"; dark_mode = TRUE; break; default: theme = "???"; }
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jan ’25
Reply to VStack Alignment Issue
I think you're misunderstanding what the alignment parameter does in a VStack. It aligns the subviews in the stack, not the stack itself. Here's a visual example: import SwiftUI struct ContentView: View { var body: some View { VStack(alignment: .leading) { Image(systemName: "arrow.2.circlepath") .colorInvert() .font(.system(size: 30)) .border(Color.yellow) Text("alignment: .leading") .font(.system(size: 20)) .foregroundStyle(Color.white) .border(Color.yellow) } .frame(maxWidth: .infinity) .background(Color.black) VStack(alignment: .trailing) { Image(systemName: "arrow.2.circlepath") .colorInvert() .font(.system(size: 30)) .border(Color.yellow) Text("alignment: .trailing") .font(.system(size: 20)) .foregroundStyle(Color.white) .border(Color.yellow) } .frame(maxWidth: .infinity) .background(Color.green) HStack { VStack(alignment: .leading) { Image(systemName: "arrow.2.circlepath") .colorInvert() .font(.system(size: 30)) .border(Color.yellow) Text("alignment: .leading in an HStack") .font(.system(size: 20)) .foregroundStyle(Color.white) .border(Color.yellow) } Spacer() // <<-- Remove this line and see the difference } .frame(maxWidth: .infinity) .background(Color.blue) } } #Preview { ContentView() } In the blue section, where I've said to remove the line with the Spacer() this is to show you the effect of using an HStack, which is what I think you want. The HStack simply lines up views horizontally, and when you add in a Spacer() it pushes the content along, so this pushes the text to the left: |SOME TEXT HERE<---Spacer()--->| This pushes the text to the right: |<---Spacer()--->SOME TEXT HERE| and this spreads it out: |SOME<---Spacer()--->TEXT<---Spacer()--->HERE|
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jan ’25
Reply to Icloud Drive and Photo Library not syncing in windows 11
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Replies
Boosts
Views
Activity
Jan ’25
Reply to imessage group chat confusion
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Replies
Boosts
Views
Activity
Jan ’25
Reply to Lag
Oh noes! Have you tried talking to the pubgmobile people rather than us random developers on here?
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’25
Reply to Preselect PhotoPickerItems from Image when reopening PhotosPicker
I haven't run through that sample project myself, but looking at the code is there anything inside profileImage that you can store alongside the image? So, if profileImage.image is the image data itself, which is what you're storing in MyEntity, is there an identifier in profileImage that you can also store in MyEntity as MyEntity.imageId? Some sort of UUID string? If so, store it, then check for that when you want to pre-select images.
Replies
Boosts
Views
Activity
Jan ’25
Reply to Add custom emoji tags
These are the Developer Forums, where developers of third-party apps for Apple's platforms ask each other for hints and tips on coding. These forums are not where Apple's actual developers chat about new features. If you have a suggestion, you should raise it at: https://www.apple.com/feedback/
Replies
Boosts
Views
Activity
Jan ’25
Reply to Shocked by Apple Developer Program Experience – Account Banned Without Explanation
Whilst the Review Team may not always provide "actionable feedback", I doubt they're out to stop apps being released the App Store. That wouldn't make any sense. More likely is that there is a real reason why your apps were rejected, and perhaps, in your frustration, you got a little heated and had a go at them? That's probably why you were banned? What reasons did they actually provide for the rejections? You can copy & paste them here if you like.
Replies
Boosts
Views
Activity
Jan ’25
Reply to Error creating the CFMessagePort needed to communicate with PPT. Error
I get this in Xcode 16.2 in my apps for iOS 18.2. PPT is the Performance Power Tools, but I think this is an internal error from the frameworks, and not something you're doing, as you can get this from a completely new project in Xcode.
Replies
Boosts
Views
Activity
Jan ’25
Reply to Question on Developer Membership?
You don't even need a membership to develop apps; you only need it when you're going to release an app or make use of various resources, so you could start developing the app now and use a versioning system like Git to collaborate. Then, when you're ready, you can start one membership, and just have multiple team members.
Replies
Boosts
Views
Activity
Jan ’25
Reply to Content blocker not removing content
Is no one writing content blocker rules anymore? Anyone at Apple know how to handle this? You guys wrote the content blocker framework; you must have examples of how to use it? This page: https://developer.apple.com/documentation/safariservices/creating-a-content-blocker only has one example, and doesn't cover much at all. Searching the internet seems to just return info on how the various adblocker apps work - including using their own internal methods (-abp-has(> div > img.advert) etc.), which Safari cannot use. If we cannot select elements by the text they contain, then content blockers in Safari are severely hampered. What if I don't want to see news stories about football? Unless the alt tag of an img has the word 'football' in it, I can't block it, and I can't block something as simple as this: <a href="/pages/sport/thebiggame/">Football</a>.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’25