The goal is to use two separate personal apps on Mac and/or iPad(interested on whatever works) with SwiftUI, and to have one app write to a very simple text string file with just one string of text that gets replaced by the first app from time to time. The second personal use app would then read the text file by opening and reading in the text string to a variable to do whatever with it.
The idea is that even if the first app isn’t running , the file can still be accessed to see what the last value saved there was.
I’ve looked around and tried several tutorials , lessons, posts, examples and haven’t quite found something that will work. Any help here would be very appreciated. Thanks Happy new year !
Ultimately, it’s to be used to notify in case there are any terminal/fatal errors that causes the first app to stop running, which is a problem I’ve been dealing with.




