Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to horizontally align section within a container? #106

Open
kkyr opened this issue Aug 2, 2023 · 0 comments
Open

How to horizontally align section within a container? #106

kkyr opened this issue Aug 2, 2023 · 0 comments

Comments

@kkyr
Copy link

kkyr commented Aug 2, 2023

How can I horizontally align to the center a section that is within a container?

struct KeyBindingsView: View {
    private let contentWidth =  500.0
    
    var body: some View {
        Settings.Container(contentWidth: contentWidth) {
            Settings.Section(title: "Section Title:") {
                Settings.Section(title: "") {
                    KeyboardShortcuts.Recorder(for: .activate)
                    Text("Do something.")
                        .settingDescription()
                }
            }
        }
    }
}

Screenshot 2023-08-03 at 01 34 40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant