Remove all iOS 14 specific components and workarounds and comply with SwiftUI 3. Signed-off-by: kingbri <bdashore3@proton.me>
27 lines
602 B
Swift
27 lines
602 B
Swift
//
|
|
// EmptyInstructionView.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 9/5/22.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct EmptyInstructionView: View {
|
|
let title: String
|
|
let message: String
|
|
|
|
var body: some View {
|
|
VStack(spacing: 5) {
|
|
Text(title)
|
|
.font(.system(size: 25, weight: .semibold))
|
|
|
|
Text(message)
|
|
.padding(.horizontal, 50)
|
|
}
|
|
.multilineTextAlignment(.center)
|
|
.foregroundColor(.init(uiColor: .secondaryLabel))
|
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
.ignoresSafeArea()
|
|
}
|
|
}
|