2023-09-15 18:40:52 -07:00
//
// M e s s a g e s T i p s . s w i f t
// M e s h t a s t i c
//
// C o p y r i g h t ( c ) G a r t h V a n d e r H o u w e n 9 / 1 5 / 2 3 .
//
import SwiftUI
#if canImport ( TipKit )
import TipKit
#endif
@ available ( iOS 17.0 , macOS 14.0 , * )
struct MessagesTip : Tip {
var id : String {
2023-09-15 19:20:45 -07:00
return " tip.messages "
2023-09-15 18:40:52 -07:00
}
var title : Text {
2023-09-15 19:20:45 -07:00
Text ( " tip.messages.title " )
2023-09-15 18:40:52 -07:00
}
var message : Text ? {
2023-09-15 19:20:45 -07:00
Text ( " tip.messages.message " )
2023-09-15 18:40:52 -07:00
}
var image : Image ? {
2023-09-17 19:42:03 -07:00
Image ( systemName : " bubble.left.and.bubble.right " )
}
}
@ available ( iOS 17.0 , macOS 14.0 , * )
struct ContactsTip : Tip {
var id : String {
return " tip.messages.contacts "
}
var title : Text {
2024-05-29 16:40:07 -05:00
// T e x t ( " t i p . m e s s a g e s . c o n t a c t s . t i t l e " )
2023-09-17 19:42:03 -07:00
Text ( " Contacts " )
}
var message : Text ? {
2024-05-29 16:40:07 -05:00
// T e x t ( " t i p . m e s s a g e s . c o n t a c t s . m e s s a g e " )
2024-02-17 15:08:01 -08:00
Text ( " Each node is an available contact. Contacts with recent messages or marked as favorites show up at the top of the list. Select a contact to send or view messages. Long press to favorite or mute the contact or delete the conversation. " )
2023-09-17 19:42:03 -07:00
}
var image : Image ? {
Image ( systemName : " person.circle " )
2023-09-15 18:40:52 -07:00
}
}