Skip to content

Instantly share code, notes, and snippets.

@dennda
Created June 20, 2018 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dennda/719da5b94e754caf7a5213d6a0435481 to your computer and use it in GitHub Desktop.
Save dennda/719da5b94e754caf7a5213d6a0435481 to your computer and use it in GitHub Desktop.
commit 3c1d735f02d64cdd8890b394524987401afcecd1
Author: Christopher Denter <c@denter.org>
Date: Wed Jun 20 12:59:43 2018 +0200
XPLAIN: Fix an issue where audio sample cells would override their descriptions text attributes.
diff --git a/DuolingoMobile/Sources/Explanations/ExplanationCells.swift b/DuolingoMobile/Sources/Explanations/ExplanationCells.swift
index 5ee3b04ac..37def6bc2 100644
--- a/DuolingoMobile/Sources/Explanations/ExplanationCells.swift
+++ b/DuolingoMobile/Sources/Explanations/ExplanationCells.swift
@@ -784,6 +784,7 @@ class AudioSampleCell: ExplanationCell, UIGestureRecognizerDelegate {
private static func makeLabel() -> HintLabel {
let label = HintLabel(style: duoStyle)
+ label.inhibitOverridingTextAttributes = true
return label
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment