feat: ios mobil arayüz tasarımı
This commit is contained in:
21
ios/Bookibra/DesignSystem/Components/NetworkErrorView.swift
Normal file
21
ios/Bookibra/DesignSystem/Components/NetworkErrorView.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
import SwiftUI
|
||||
|
||||
struct NetworkErrorView: View {
|
||||
let message: String
|
||||
let retryAction: () -> Void
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 12) {
|
||||
Image(systemName: "wifi.exclamationmark")
|
||||
.font(.title2)
|
||||
Text(message)
|
||||
.font(.subheadline)
|
||||
.multilineTextAlignment(.center)
|
||||
Button(String(localized: "common.retry"), action: retryAction)
|
||||
.buttonStyle(.borderedProminent)
|
||||
}
|
||||
.padding()
|
||||
.background(.ultraThinMaterial, in: RoundedRectangle(cornerRadius: 16))
|
||||
.padding(.horizontal)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user