Archived
1
Fork 0

Remove extra comma from post title and fix catalyst title issue

This commit is contained in:
redstrate 2020-05-24 22:01:06 -04:00
parent 5d20a7f71b
commit 96e654dc34

View file

@ -22,8 +22,8 @@ class PostViewController: UIViewController, UIPopoverPresentationControllerDeleg
return return
} }
for tag in postObject.tags! { for (i, tag) in postObject.tags!.enumerated() {
if !tagList.isEmpty { if !tagList.isEmpty && i != postObject.tags!.count - 1 {
tagList += ", " tagList += ", "
} }
@ -59,11 +59,17 @@ class PostViewController: UIViewController, UIPopoverPresentationControllerDeleg
} }
} }
#if !targetEnvironment(macCatalyst)
updateWindowTitle() updateWindowTitle()
#endif
} }
override func viewDidAppear(_ animated: Bool) { override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated) super.viewDidAppear(animated)
#if targetEnvironment(macCatalyst)
updateWindowTitle()
#endif
} }
@objc func closePopup() { @objc func closePopup() {