Skip to content

ivankoop/IOS-YoutubeTextView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

IOS-YoutubeTextView

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.

How to use

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);

License

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:

About

IOS TextView with Youtube Iframe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages