import SwiftUI

struct ContentView: View {
    var body: some View {
        ViewThatFits(in: .horizontal) {
            HStack { actions }
            VStack { actions }
        }
        .buttonStyle(.bordered)
        .padding()
    }

    @ViewBuilder
    private var actions: some View {
        Button("Save to reading list") { }
        Button("Share this discovery") { }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}
