Meshtastic-Apple/Meshtastic/Tips/ChannelTips.swift

62 lines
1.1 KiB
Swift
Raw Permalink Normal View History

2023-08-31 22:39:51 -07:00
//
// ChannelTips.swift
// Meshtastic
//
// Copyright(c) Garth Vander Houwen 8/31/23.
//
import SwiftUI
#if canImport(TipKit)
import TipKit
#endif
@available(iOS 17.0, macOS 14.0, *)
struct ShareChannelsTip: Tip {
var id: String {
2023-09-15 19:20:45 -07:00
return "tip.channels.share"
2023-08-31 22:39:51 -07:00
}
var title: Text {
2023-09-15 19:20:45 -07:00
Text("tip.channels.share.title")
2023-08-31 22:39:51 -07:00
}
var message: Text? {
2023-09-15 19:20:45 -07:00
Text("tip.channels.share.message")
2023-08-31 22:39:51 -07:00
}
var image: Image? {
Image(systemName: "qrcode")
2023-08-31 22:39:51 -07:00
}
}
@available(iOS 17.0, macOS 14.0, *)
struct CreateChannelsTip: Tip {
var id: String {
return "tip.channels.create"
}
var title: Text {
Text("tip.channels.create.title")
}
var message: Text? {
Text("tip.channels.create.message")
}
var image: Image? {
Image(systemName: "fibrechannel")
}
}
@available(iOS 17.0, macOS 14.0, *)
struct AdminChannelTip: Tip {
var id: String {
return "tip.channel.admin"
}
var title: Text {
Text("tip.channel.admin.title")
}
var message: Text? {
Text("tip.channel.admin.message")
}
var image: Image? {
Image(systemName: "fibrechannel")
}
}