sindresorhus/KeyboardShortcuts

How to change the Recorder size in swiftUI

kaich opened this issue · 3 comments

kaich commented

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

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.

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

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?