better wording and layout for new issue

This commit is contained in:
Ryan Nystrom
2017-09-28 20:19:46 -04:00
parent 8d1aa57301
commit 8dd6bfbe9e
2 changed files with 7 additions and 3 deletions

View File

@@ -18,6 +18,7 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="603"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.96470588239999999" green="0.97254901959999995" blue="0.98039215690000003" alpha="1" colorSpace="calibratedRGB"/>
<inset key="separatorInset" minX="16" minY="0.0" maxX="0.0" maxY="0.0"/>
<color key="sectionIndexBackgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<sections>
<tableViewSection headerTitle="TITLE" id="sKb-Cw-QTz">

View File

@@ -100,6 +100,9 @@ final class NewIssueTableViewController: UITableViewController, UITextFieldDeleg
titleField.delegate = self
// Setup markdown input view
bodyField.contentInset = .zero
bodyField.textContainerInset = .zero
bodyField.textContainer.lineFragmentPadding = 0
setupInputView()
// Update title to use localization
@@ -165,11 +168,11 @@ final class NewIssueTableViewController: UITableViewController, UITextFieldDeleg
}
let title = NSLocalizedString("Unsaved Changes", comment: "New Issue - Cancel w/ Unsaved Changes Title")
let message = NSLocalizedString("Are you sure you want to cancel this new issue? Your message will be lost.", comment: "New Issue - Cancel w/ Unsaved Changes Message")
let message = NSLocalizedString("Are you sure you want to discard this new issue? Your message will be lost.", comment: "New Issue - Cancel w/ Unsaved Changes Message")
let alert = UIAlertController(title: title, message: message, preferredStyle: .alert)
alert.addAction(UIAlertAction(title: NSLocalizedString("No", comment: ""), style: .cancel, handler: nil))
alert.addAction(UIAlertAction(title: NSLocalizedString("Yes", comment: ""), style: .destructive, handler: { _ in
alert.addAction(UIAlertAction(title: NSLocalizedString("Go back", comment: ""), style: .cancel, handler: nil))
alert.addAction(UIAlertAction(title: NSLocalizedString("Discard", comment: ""), style: .destructive, handler: { _ in
dismissBlock()
}))