make html links clickable
MODIFY
Podcast/Episode.swift
Podcast/Episode.swift
@@ -112,7 +112,7 @@ class Episode: NSObject {
let modifiedFont = NSString(format:"<span style=\"font-family: '-apple-system', 'HelveticaNeue'; font-size: 14\">%@</span>" as NSString, descriptionText) as String
let attrStr = try! NSAttributedString(
- data: modifiedFont.data(using: .unicode, allowLossyConversion: true)!,
+ data: modifiedFont.data(using: .utf8, allowLossyConversion: true)!,
options: [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType, NSCharacterEncodingDocumentAttribute: String.Encoding.utf8.rawValue],
documentAttributes: nil)

MODIFY
Podcast/PlayerControlsView.swift
Podcast/PlayerControlsView.swift
@@ -50,7 +50,7 @@ class PlayerControlsView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
self.frame.size.height = playerControlsViewHeight
- backgroundColor = UIColor.colorFromCode(0xf4f4f7)
+ backgroundColor = .podcastPlayerGray
slider = UISlider(frame: .zero)
slider.frame.origin = CGPoint(x: marginSpacing, y: self.frame.maxY - sliderYInset)

MODIFY
Podcast/PlayerEpisodeDetailView.swift
Podcast/PlayerEpisodeDetailView.swift
@@ -56,7 +56,6 @@ class PlayerEpisodeDetailView: UIView {
descriptionTextView = UITextView(frame: .zero)
descriptionTextView.isEditable = false
- descriptionTextView.isSelectable = false
descriptionTextView.backgroundColor = .clear
addSubview(descriptionTextView)
@@ -68,7 +67,6 @@ class PlayerEpisodeDetailView: UIView {
}
func updateUIForEpisode(episode: Episode) {
- episodeArtworkImageView.image = #imageLiteral(resourceName: "filler_image")
if let url = episode.largeArtworkImageURL {
episodeArtworkImageView.setImageAsynchronously(url: url, completion: nil)
}

make html links clickable