Meshtastic-Apple/Meshtastic/Tips/ChannelTips.swift

57 lines
1.4 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
import TipKit
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 {
2025-05-08 14:42:11 -07:00
Text("Sharing Meshtastic Channels")
2023-08-31 22:39:51 -07:00
}
var message: Text? {
2025-05-08 14:42:11 -07:00
Text("A Meshtastic QR code contains the LoRa config and channel values needed for radios to communicate. You can share a complete channel configuration using the Replace Channels option, if you choose Add Channels your shared channels will be added to the channels on the receiving radio.")
2023-08-31 22:39:51 -07:00
}
var image: Image? {
Image(systemName: "qrcode")
2023-08-31 22:39:51 -07:00
}
}
struct CreateChannelsTip: Tip {
var id: String {
return "tip.channels.create"
}
var title: Text {
2025-05-08 14:42:11 -07:00
Text("Manage Channels")
}
var message: Text? {
2025-05-08 14:42:11 -07:00
Text("Most data on your mesh is sent over the primary channel. You can set up secondary channels to create additional messaging groups secured by their own key. [Channel config tips](https://meshtastic.org/docs/configuration/tips/)")
}
var image: Image? {
Image(systemName: "fibrechannel")
}
}
struct AdminChannelTip: Tip {
var id: String {
return "tip.channel.admin"
}
var title: Text {
2025-05-07 23:09:50 -07:00
Text("Administration Enabled")
}
var message: Text? {
2025-05-07 23:09:50 -07:00
Text("Select a node from the drop down to manage connected or remote devices.")
}
var image: Image? {
Image(systemName: "fibrechannel")
}
}