Skip to content

Commit

Permalink
feat(app): iOS error screens
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed Nov 12, 2024
1 parent f7cc99f commit b0b3c1e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions apps/mobile/metro-now/metro-now/pages/error/no-location.view.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// metro-now
// https://github.com/krystxf/metro-now

import SwiftUI

struct NoLocationView: View {
var body: some View {
ContentUnavailableView {
Label(
"Location Unavailable",
systemImage: "location.slash"
)
} description: {
Text(
"Make sure you granted location permission to the app."
)
}
}
}

#Preview {
NoLocationView()
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// metro-now
// https://github.com/krystxf/metro-now

import SwiftUI

struct NoNetworkConectionView: View {
var body: some View {
ContentUnavailableView {
Label(
"No Internet Connection",
systemImage: "antenna.radiowaves.left.and.right.slash"
)
} description: {
Text(
"Please check your connection and try again."
)
}
}
}

#Preview {
NoNetworkConectionView()
}

0 comments on commit b0b3c1e

Please sign in to comment.