mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
28 lines
572 B
Swift
28 lines
572 B
Swift
//
|
|
// AccountSheetFooter.swift
|
|
// NetNewsWire-iOS
|
|
//
|
|
// Created by Brent Simmons on 9/18/26.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
/// Centered description text with a link button below it, used as the last section footer of the account setup sheets.
|
|
struct AccountSheetFooter: View {
|
|
|
|
let text: String
|
|
let linkTitle: String
|
|
let linkAction: () -> Void
|
|
|
|
private static let spacing: CGFloat = 16
|
|
|
|
var body: some View {
|
|
VStack(spacing: Self.spacing) {
|
|
Text(text)
|
|
.multilineTextAlignment(.center)
|
|
Button(linkTitle, action: linkAction)
|
|
}
|
|
.frame(maxWidth: .infinity)
|
|
}
|
|
}
|