Post

Replies

Boosts

Views

Activity

Reply to How to add vibrancy to image?
Did you check Apple's doc: https://developer.apple.com/documentation/appkit/nsvisualeffectview There is this specific warning: AppKit views and controls automatically add vibrancy where appropriate. For example, NSTextField enables vibrancy to increase the contrast between the text and background. Don't change the vibrancy settings of standard AppKit views and controls.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’21
Reply to Suggestion. More replies from Apple team
Sure, Apple experts do bring a lot of value when they contribute. But this is a forum for developers, where Apple experts may help from time to time, but not an official channel. IMO that's fine this way. To get Apple support, we have to use Contact Us or burn a DTS ticket. This being said, non-reply in the forum is effectively a problem. Have you checked that you have closed all your posts for which you got a correct answer ?
Nov ’21
Reply to Xcode error run function
Where can I find the "info.plist?" When you open your project in Xcode, you will get it in the left panel (file navigator panel) Note it may be listed without showing the extension, simply as Info. You will find the real Bundle ID content in the Project Targets; select the project (at top of file navigator panel) and look for its Targets:
Nov ’21
Reply to Regarding hiding the menu bar...
I want the menu bar to be hidden globally during the execution of this special app.  In that case,   NSMenu.setMenuBarVisible(false) should do the job (but you may have to disable actions if you have any shortcuts) What happens when you add this in appDidFinishLaunching ?
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’21
Reply to SwiftUI Text inside Text interpolation bug?
Strange indeed. Same behaviour in iOS. Where does this 1 in Hello1 come from ? Is it the 1 of True bool ? The reason is likely because t1 is not a String (or an AttributedString), but a Text view. It is even surprising that interpolation works. Probably, SwiftUI extracts the attributedText from the TextStorage of the Text View, and fails in some cases. I tried the following variation to illustrate: let t1 = Text("Hello").foregroundColor(.red) let t2 = Text("World").foregroundColor(.blue) let s1 = "\(t1)\(t2)" Text(s1) // Instead of -->> Text("\(t1)\(t2)") .padding() .frame(width: 200) I get a totally different result : That's worth a bug report or at least a contact to support team.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Reply to After xcode 13.1 upgrade from app store I have 2 versions of xcode
Having 2 versions, if they have not the same name, is not a problem in itself. Were those 2 version Release versions ? Which build number ? Or was 13 a beta or RC ?
Replies
Boosts
Views
Activity
Nov ’21
Reply to Xcode error run function
Have you checked the info.plist ? It is by default : $(PRODUCT_BUNDLE_IDENTIFIER) Could you post it here as an attached file ?
Replies
Boosts
Views
Activity
Nov ’21
Reply to How to add vibrancy to image?
Did you check Apple's doc: https://developer.apple.com/documentation/appkit/nsvisualeffectview There is this specific warning: AppKit views and controls automatically add vibrancy where appropriate. For example, NSTextField enables vibrancy to increase the contrast between the text and background. Don't change the vibrancy settings of standard AppKit views and controls.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to After updating xcode13, there is no symbol and the style is changed,
Does the project compile ? If so, that means everything is there but not showing. Did you try to see in dark mode ? What do you get when you copy and paste this code into a plain text editor ? Apparently, all text in black is now white. Go to Xcode > Preferences > themes and check what is the color of Plain Text in your theme (probably default).
Replies
Boosts
Views
Activity
Nov ’21
Reply to UITableViewCell Swipe Cell Action not working on MAC M1 Max
Did you see this thread, with some having similar problem on M1 ? With the advice to wrap the action to a dispatch to main queue. https://developer.apple.com/forums/thread/679558 You should file a bug report.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Random Crashes on iOS 15+
Are you using Unity ? Did you ask them about possible cause of crash ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Mac crashes when extracting Xcode 13.x xip file
How much disk space available ? It should be at least 50 or even 60 GB before starting download.
Replies
Boosts
Views
Activity
Nov ’21
Reply to Suggestion. More replies from Apple team
Sure, Apple experts do bring a lot of value when they contribute. But this is a forum for developers, where Apple experts may help from time to time, but not an official channel. IMO that's fine this way. To get Apple support, we have to use Contact Us or burn a DTS ticket. This being said, non-reply in the forum is effectively a problem. Have you checked that you have closed all your posts for which you got a correct answer ?
Replies
Boosts
Views
Activity
Nov ’21
Reply to Regarding hiding the menu bar...
Do you mean you want to hide whatever app is launched ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Random Crashes on iOS 15+
Thanks for feedback. Please post answer here when you get it from Unity forum.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Xcode error run function
Where can I find the "info.plist?" When you open your project in Xcode, you will get it in the left panel (file navigator panel) Note it may be listed without showing the extension, simply as Info. You will find the real Bundle ID content in the Project Targets; select the project (at top of file navigator panel) and look for its Targets:
Replies
Boosts
Views
Activity
Nov ’21
Reply to How do I insert a button with xcode version 13?
You access the object Library by: selection a View in Storyboard clicking on + Button at top right of Xcode window Button(s) will be listed here:
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Regarding hiding the menu bar...
I want the menu bar to be hidden globally during the execution of this special app.  In that case,   NSMenu.setMenuBarVisible(false) should do the job (but you may have to disable actions if you have any shortcuts) What happens when you add this in appDidFinishLaunching ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to SwiftUI Text inside Text interpolation bug?
Strange indeed. Same behaviour in iOS. Where does this 1 in Hello1 come from ? Is it the 1 of True bool ? The reason is likely because t1 is not a String (or an AttributedString), but a Text view. It is even surprising that interpolation works. Probably, SwiftUI extracts the attributedText from the TextStorage of the Text View, and fails in some cases. I tried the following variation to illustrate: let t1 = Text("Hello").foregroundColor(.red) let t2 = Text("World").foregroundColor(.blue) let s1 = "\(t1)\(t2)" Text(s1) // Instead of -->> Text("\(t1)\(t2)") .padding() .frame(width: 200) I get a totally different result : That's worth a bug report or at least a contact to support team.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Modern collection view registration with Storyboards?
You have : elementKind: "header" Where did you define it ? Did you try replacing with: elementKind: "Header" Or simply UICollectionView.elementKindSectionHeader There was an interesting discussion on the forum a few months ago, if that may help: https://developer.apple.com/forums/thread/682570
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’21