16 lines
271 B
Swift
16 lines
271 B
Swift
import SwiftUI
|
|
|
|
public struct InfoButton: View {
|
|
let action: () -> Void
|
|
|
|
public init(action: @escaping () -> Void) {
|
|
self.action = action
|
|
}
|
|
|
|
public var body: some View {
|
|
Button(action: action) {
|
|
Label("Info", systemImage: "info.circle")
|
|
}
|
|
}
|
|
}
|