Help with styling PasteButton in SwiftUI

iOS 16 introduced a new clipboard privacy protection feature which requires that the user explicitly allow the app to use UIPasteboard every time they take that action. This makes custom paste buttons (designed to make it faster for the user to paste, instead of needing to use the text editing menu) very tedious to use.

Apple introduced a new SwiftUI element, PasteButton, to take the place of this custom approach. The problem is that I can't seem to find any good documentation on how to style the button. Previously I had a series of small icon buttons for quick controls, but now this new UI element is throwing things off. See the images below for an example:

Old:

New:

This also causes UI inconsistencies between old and new iOS versions for my users, since the PasteButton is only 16.0+.

Does anyone have any tips for how I can get the new button to look like the old one I made myself? Or at least to scale it down and make the background a circle?

Here's my current code:

if #available(iOS 16.0, *) {
    PasteButton(payloadType: String.self) { strings in
        guard let first = strings.first else { return }
        linkStr = first
    }
    .labelStyle(.iconOnly)
    .buttonBorderShape(.roundedRectangle(radius: 100))
    .padding(.top, 16)
} else {
    // Fallback on earlier versions
    Button(action: {
        if let pasteStr = UIPasteboard.general.string {
            linkStr = pasteStr
            hideKeyboard()
        }
    }) {
        Image(systemName: "doc.on.clipboard")
            .padding([.trailing, .top, .bottom])
    }
    .padding(.top, 16)
    .help("Paste link from clipboard")
}
Help with styling PasteButton in SwiftUI
 
 
Q