mirror of
https://github.com/netbirdio/ios-client.git
synced 2026-09-23 09:28:33 -07:00
28 lines
564 B
Swift
28 lines
564 B
Swift
//
|
|
// CustomBackButton.swift
|
|
// NetBirdiOS
|
|
//
|
|
// Created by Pascal Fischer on 01.08.23.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct CustomBackButton: View {
|
|
var text : String
|
|
var action: () -> Void
|
|
|
|
var body: some View {
|
|
Button(action: {
|
|
action()
|
|
}) {
|
|
HStack {
|
|
Image("chevron.left")
|
|
Text(text)
|
|
.padding(.leading, 5)
|
|
.font(.system(size: 26, weight: .regular))
|
|
.foregroundColor(Color("TextPrimary"))
|
|
}
|
|
}
|
|
}
|
|
}
|