fix isEnabled bug
MODIFY
Podcast/BookmarkTableViewCell.swift
Podcast/BookmarkTableViewCell.swift
@@ -114,7 +114,7 @@ class BookmarkTableViewCell: UITableViewCell {
override func prepareForReuse() {
super.prepareForReuse()
- playButton.isEnabled = true
+ playButton.isSelected = false
recommendedButton.isSelected = false
}

MODIFY
Podcast/CardTableViewCell.swift
Podcast/CardTableViewCell.swift
@@ -208,7 +208,7 @@ class CardTableViewCell: UITableViewCell {
contextImages = []
tagButtonsView.prepareForReuse()
- playButton.isEnabled = true
+ playButton.isSelected = false
recommendedButton.isSelected = false
bookmarkButton.isSelected = false
}
@@ -288,7 +288,7 @@ class CardTableViewCell: UITableViewCell {
}
func setPlayButtonToState(isPlaying: Bool) {
- playButton.isEnabled = !isPlaying
+ playButton.isSelected = isPlaying
}
func didPressMoreButton() {

MODIFY
Podcast/EpisodeTableViewCell.swift
Podcast/EpisodeTableViewCell.swift
@@ -186,7 +186,7 @@ class EpisodeTableViewCell: UITableViewCell {
override func prepareForReuse() {
super.prepareForReuse()
tagButtonsView.prepareForReuse()
- playButton.isEnabled = true
+ playButton.isSelected = false
recommendedButton.isSelected = false
bookmarkButton.isSelected = false
}
@@ -262,7 +262,7 @@ class EpisodeTableViewCell: UITableViewCell {
}
func setPlayButtonToState(isPlaying: Bool) {
- playButton.isEnabled = !isPlaying
+ playButton.isSelected = isPlaying
}
func didPressMoreButton() {

fix isEnabled bug