简体   繁体   中英

How can I add padding around the window buttons in macOS (SwiftUI)?

Good evening everyone, I am trying to code my first macOS app with SwiftUI in Xcode. Among other things, I pay a lot of attention to an appropriate design. I prefer padding around the window buttons as seen in this picture (example: finder):

带 paddin 的窗口按钮

But at the moment, there isn't much padding around the window button as seen in this picture:

没有填充的窗口按钮

Is it possible to change that in SwiftUI? Thanks for every answer!

(Sorry for my English)

You're gonna have to use a toolbar在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM