sindresorhus / KeyboardShortcuts

⌨️ Add user-customizable global keyboard shortcuts (hotkeys) to your macOS app in minutes
https://swiftpackageindex.com/sindresorhus/KeyboardShortcuts/documentation/keyboardshortcuts/keyboardshortcuts
MIT License
1.99k stars 184 forks source link

How to change the Recorder size in swiftUI #133

Open kaich opened 1 year ago

kaich commented 1 year ago

I use it in swiftUI. But I found the .frame(width: height:) not work. How to change the size of the Recorder?

sindresorhus commented 1 year ago

I haven't found a way to both support setting a .frame() but also default to 130 width. I'm not interested in passing in a size parameter to the recorder. Also, in general, you should just use the default size. It's sized to fit any keyboard shortcut, but also no wider than necessary.

yousefNowPay commented 11 months ago

I have the same case did you figured a solution for that ? @kaich

Maschina commented 3 months ago

Also, in general, you should just use the default size. It's sized to fit any keyboard shortcut, but also no wider than necessary.

@sindresorhus I see a use case where this makes sense and that is vertically layouting several Recorders. What might work is an extension that imitates the .frame() View extension?