Post

Replies

Boosts

Views

Activity

Reply to Changing the size of a window on button click
I am quite new to swift, so I tried changing the frame() width and height of the VStack in which the button/text is defined. I tried googling this particular feature but I could only find resizing images and not the whole window itself. If you could point me to any resources, that also would be great as I could not find any. My end goal is to increase the window size as the text contents displayed keep increasing. If there is no text then the default window size should remain as small as possible. Currently I have set the window size as follows var body: some Scene { WindowGroup { ContentView() .navigationTitle("Firmware Utility") .frame(width:300,height:300) } .windowResizability(WindowResizability.contentSize) } } even if I remove the line of code .windowResizability(WindowResizability.contentSize) my window still does not expand as the text shown piles up. I asked for a button based event because it is easier to build up my end goal from there. thanks.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’23
Reply to importing HID Driver Kit Framework
Thank you for the response. When you say "Neither of these can be imported into a standard Mac app", what does that mean? My use case is to develop a C/C++ project that needs to make use of APIs from HIDDriverKit. Bottom line: It need not be a Mac App (as such). I just want an executable that can be run on Mac (I intend to run this from a command line or from a java application). Could you tell me how this can be achieved. I mean if it is not too much to ask, maybe you could provide me with a basic workflow on how to setup the project on Xcode. Regards, Vishnu
Topic: App & System Services SubTopic: Drivers Tags:
Jul ’23