Post

Replies

Boosts

Views

Activity

Reply to NSTextField in toolbar on Big Sur
I managed to add a resizeable NSTextField to NSToolbar with the following code: let item = NSToolbarItem(itemIdentifier: .titleItem) /* Or any other identifier */ let field = NSTextField() /* Do not use one of the new initialisers! */ field.isBordered = false /* This is essential */ field.lineBreakMode = .byTruncatingTail item.view = field
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’24
Reply to Launch screen not rendering correctly on iPad
A super weird workaround for this problem is to add an UIButton (I selected the "Filled Button") to the LaunchScreen.storyboard, and then to add horizontal and vertical alignment constraints to this button. After this I enabled the Hidden property of the button. Since then the launch screen is being resized as expected on my new iPad Pro.
Topic: UI Frameworks SubTopic: UIKit Tags:
Dec ’22