Post

Replies

Boosts

Views

Activity

Comment on Making button size bigger
Note that scaleFactor is not used in MyButtonStyle. It can be eliminated. Looking at my actual application, the exampleView looks like the following: .buttonStyle(GameButtonStyle(labelWidth: 140 * scaleFactor, labelHeight: 20 * scaleFactor, minWidth: 70 * scaleFactor, verticalPadding: 3 * scaleFactor)) I determine the scaleFactor depending upon the size of the window on OSX or the size of the screen on IOS.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’23
Comment on Making button size bigger
Note that scaleFactor is not used in MyButtonStyle. It can be eliminated. Looking at my actual application, the exampleView looks like the following: .buttonStyle(GameButtonStyle(labelWidth: 140 * scaleFactor, labelHeight: 20 * scaleFactor, minWidth: 70 * scaleFactor, verticalPadding: 3 * scaleFactor)) I determine the scaleFactor depending upon the size of the window on OSX or the size of the screen on IOS.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’23
Comment on invalid mode 'kCFRunLoopCommonModes'
I believe NB means "Note well" That is, pay attention or important notice here. It is Latin for "nota bene"
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’23