I started developing an IOS app for iphone using Xcode 10.1 and Swift (4.2.1).
My application mixes some C code that does network access. For the first I would like to have a TextView and I would like to have all what normally the underlying C-code would do using printf() have that output appearing in a TextView in my App.
Is this the right forum actually o ask such?
My idea is to write into a fifo from the C-code and read from that fifo in the TextView.
That would require that the TextView is permanently updated from the fifo.
How could on achieve this whithout having the program caught up in a tight loop?