         DispatchQueue.main.async {
             let output = String(format: "%@\n%@", self.viewer.text, string)
             self.viewer.text = output
+            self.viewer.scrollToBottom()
             self.viewer.flashScrollIndicators()
         }
     }

    }
}

#endif

#if canImport(MessageUI) && canImport(UIKit)

        control.translatesAutoresizingMaskIntoConstraints = false
        control.setTitle("Email", for: .normal)
        control.setTitleColor(.blue, for: .normal)
        control.setTitleColor(.gray, for: .disabled)
        control.addTarget(self, action: #selector(didTapEmail(_:)), for: .touchUpInside)
        return control
    }()
