68 lines
2.5 KiB
Swift
68 lines
2.5 KiB
Swift
struct BottomMenuView: View {
|
|
@State var core: Core
|
|
var body: some View {
|
|
HStack(spacing: 40) {
|
|
|
|
Button {
|
|
if let url = URL(string: "messages://") { // Replace appScheme with the actual URL scheme of the app
|
|
if UIApplication.shared.canOpenURL(url) {
|
|
UIApplication.shared.open(url, options: [:]) { (success) in
|
|
if success {
|
|
print("App opened successfully")
|
|
} else {
|
|
print("Failed to open app")
|
|
}
|
|
}
|
|
} else {
|
|
print("The app is not installed.")
|
|
}
|
|
}
|
|
} label: {
|
|
Circle()
|
|
.overlay {
|
|
Image(systemName: "message")
|
|
.font(.system(size: 30))
|
|
.foregroundColor(.red)
|
|
}
|
|
.frame(width: 50, height: 50)
|
|
.foregroundColor(Color.init(uiColor: .darkGray))
|
|
}
|
|
|
|
NavigationLink(destination: ScreenshotGridView(core: core)) {
|
|
Circle()
|
|
.overlay {
|
|
Image(systemName: "photo")
|
|
.font(.system(size: 30))
|
|
.foregroundColor(.blue)
|
|
}
|
|
.frame(width: 50, height: 50)
|
|
.foregroundColor(Color.init(uiColor: .darkGray))
|
|
}
|
|
// ScreenshotGridView
|
|
NavigationLink(destination: SettingsView(core: core)) {
|
|
Circle()
|
|
.overlay {
|
|
Image(systemName: "gearshape")
|
|
.foregroundColor(.white)
|
|
.font(.system(size: 30))
|
|
}
|
|
.frame(width: 50, height: 50)
|
|
.foregroundColor(Color.init(uiColor: .darkGray))
|
|
|
|
}
|
|
|
|
NavigationLink(destination: BootOSView()) {
|
|
Circle()
|
|
.overlay {
|
|
Image(systemName: "power")
|
|
.foregroundColor(.white)
|
|
.font(.system(size: 30))
|
|
}
|
|
.frame(width: 50, height: 50)
|
|
.foregroundColor(Color.init(uiColor: .darkGray))
|
|
}
|
|
}
|
|
.padding(.bottom, 20)
|
|
}
|
|
}
|