Messages page layout mockup with working versions for the phone and iPad

This commit is contained in:
Garth Vander Houwen 2021-09-27 11:51:10 -07:00
parent 029ac8556f
commit 05a07b3ba7
8 changed files with 135 additions and 127 deletions

View file

@ -22,11 +22,11 @@ class MessageData: ObservableObject {
func load() {
DispatchQueue.global(qos: .background).async { [weak self] in
guard let data = try? Data(contentsOf: Self.fileURL) else {
#if DEBUG
//#if DEBUG
DispatchQueue.main.async {
self?.messages = MessageModel.data
}
#endif
//#endif
return
}
guard let messageList = try? JSONDecoder().decode([MessageModel].self, from: data) else {