Found an interesting bug in SwiftUI.
If you use a menu or anything that supports the .preferredColorScheme() modifier in a view right after the navigation bar, you'll get a barely noticeable gray stripe.
How to fix it:
Don't use the modifier at all.
Use a similar modifier .colorScheme() - but it will soon be removed in new iOS versions, but still works in the current ones.
Wait for Apple to fix this bug.
Post
Replies
Boosts
Views
Activity
Hello,
I have very simple code for share button
=============================================
@IBAction func shareButtonTapped() {
let textToShare = "some text here"
let cafeURL = URL(string: "https://example.com")!
let activityViewController = UIActivityViewController(activityItems: [textToShare, cafeURL], applicationActivities: nil)
// for iPad
if let popoverController = activityViewController.popoverPresentationController {
popoverController.sourceView = self.view
}
DispatchQueue.main.async {
self.present(activityViewController, animated: true, completion: nil)
}
}
==========================================
but after tapping on that button I have this logs in console
Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "(originator doesn't have entitlement com.apple.runningboard.primitiveattribute AND originator doesn't have entitlement com.apple.runningboard.assertions.frontboard AND target is not running or doesn't have entitlement com.apple.runningboard.trustedtarget AND Target not hosted by originator)" UserInfo={NSLocalizedFailureReason=(originator doesn't have entitlement com.apple.runningboard.primitiveattribute AND originator doesn't have entitlement com.apple.runningboard.assertions.frontboard AND target is not running or doesn't have entitlement com.apple.runningboard.trustedtarget AND Target not hosted by originator)}> (501) personaAttributesForPersonaType for type:0 failed with error Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction.} Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false} elapsedCPUTimeForFrontBoard couldn't generate a task port Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false} elapsedCPUTimeForFrontBoard couldn't generate a task port Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false} elapsedCPUTimeForFrontBoard couldn't generate a task port connection invalidated
But on real device sharescreen is appearing and all works fine.
Anyone know how fix this issue with log errors?
Thanks!
I successfully paid for Apple Developer account
And received email confirmation
Also my bank charged my card for for 99USD
Payment: 99.00 USD
Card N ****2647
APPLE.COM/US>800-676-2775 US
Balance: 22.98 USD
05/11/2023 15:01:46
But when I logged to my Apple developer account I see that I should paid again
Anyone can help me?
Thank in advance!