Instantly share code, notes, and snippets.

View gist:f4153301a512187217c92518303057ca
diff --git a/DuolingoMobile/Sources/Explanations/ExplanationCells.swift b/DuolingoMobile/Sources/Explanations/ExplanationCells.swift
index 3ad70f9b0b..ad5af4c56e 100644
--- a/DuolingoMobile/Sources/Explanations/ExplanationCells.swift
+++ b/DuolingoMobile/Sources/Explanations/ExplanationCells.swift
@@ -609,23 +609,23 @@ private class PhonemeView: UIControl {
}
/// Called when the control is tapped.
- var handleTap: (() -> Void)?
+// var handleTap: (() -> Void)?
View gist:7e9446da7bd2a5f1325a47b83da7535a
diff --git a/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m b/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m
index 0e59ddc20b..611228e206 100644
--- a/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m
+++ b/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m
@@ -360,7 +360,8 @@ - (void)viewDidLoad
{
[super viewDidLoad];
- self.view.backgroundColor = [UIColor duolingoOffWhiteColor];
+ // XXX
View gist:541958426efe6b34ce70e3d8c3aa3d52
# Data retrieved from https://api.duolingo.com/internal_api/1/trees/inspect?id=<tree_id>
3cdc03288e3c6f85b686b505cbfe29f3:
learning_language:
abbrev: es
id: es
from_language:
id: en
version:
22
skills:
View -
diff --git a/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m b/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m
index 585b7cfac..b44530f2e 100644
--- a/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m
+++ b/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m
@@ -704,9 +704,11 @@ - (BOOL)shouldAutorotate
- (BOOL)allowDisplayOfCharacters
{
+ DUOUser *user = self.userClient.user;
+
View -
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
View -
diff --git a/DuolingoMobile/Metadata/DuolingoMobile-Info.plist b/DuolingoMobile/Metadata/DuolingoMobile-Info.plist
index d3fa5550e..71cdb2d3a 100644
--- a/DuolingoMobile/Metadata/DuolingoMobile-Info.plist
+++ b/DuolingoMobile/Metadata/DuolingoMobile-Info.plist
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>5.2.29</string>
+ <string>5.2.30</string>
View -
diff --git a/DuolingoMobile/Metadata/DuolingoMobile-Info.plist b/DuolingoMobile/Metadata/DuolingoMobile-Info.plist
index f7468fd02..24042ace7 100644
--- a/DuolingoMobile/Metadata/DuolingoMobile-Info.plist
+++ b/DuolingoMobile/Metadata/DuolingoMobile-Info.plist
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>5.2.26</string>
+ <string>5.2.30</string>
View -
diff --git a/DuolingoMobile/Metadata/DuolingoMobile-Info.plist b/DuolingoMobile/Metadata/DuolingoMobile-Info.plist
index f7468fd02..24042ace7 100644
--- a/DuolingoMobile/Metadata/DuolingoMobile-Info.plist
+++ b/DuolingoMobile/Metadata/DuolingoMobile-Info.plist
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>5.2.26</string>
+ <string>5.2.30</string>
View -
diff --git a/DuolingoMobile/Sources/Explanations/StyledString.swift b/DuolingoMobile/Sources/Explanations/StyledString.swift
index 012e1ff3d..90fc0af5c 100644
--- a/DuolingoMobile/Sources/Explanations/StyledString.swift
+++ b/DuolingoMobile/Sources/Explanations/StyledString.swift
@@ -135,6 +135,16 @@ struct StyledString: Decodable {
attributedString.addAttributes(attributes, range: range)
}
+ if attributedString.string.hasSuffix("manzana") {
+// attributedString.replaceCharacters(in: NSRange(location: 0, length: 9), with: "         ")
View -
diff --git a/DuolingoMobile/Sources/Explanations/ExplanationCells.swift b/DuolingoMobile/Sources/Explanations/ExplanationCells.swift
index b29ff18c1..aa34831f2 100644
--- a/DuolingoMobile/Sources/Explanations/ExplanationCells.swift
+++ b/DuolingoMobile/Sources/Explanations/ExplanationCells.swift
@@ -209,7 +209,7 @@ class OptionsCell: ExplanationCell {
let missingButtons = max(0, model.count - buttons.count)
if missingButtons > 0 {
let newButtons = (0..<missingButtons).map { _ in
- OptionsCell.makeButton()
+ OptionsCell.makeButton(target: self)