IOS TextView with Youtube Iframe
This is a simple textView that supports youtube iframe.
Instead of a webview it creates an thumbnail of the youtube video with a link of the video that redirects to youtube app or the default browser.
you have to enable links on your textView for this to work.
let your_html_text = "<p><iframe src="//www.youtube.com/embed/qQ38S8F-gU0" width="560" height="314" allowfullscreen="allowfullscreen"></iframe></p>";
YoutubeTextView.setText(text: your_html_text);
MIT License
Copyright (c) 2017 Ivan Koop
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: