Remove extra comma from post title and fix catalyst title issue
This commit is contained in:
parent
5d20a7f71b
commit
96e654dc34
1 changed files with 8 additions and 2 deletions
|
@ -22,8 +22,8 @@ class PostViewController: UIViewController, UIPopoverPresentationControllerDeleg
|
|||
return
|
||||
}
|
||||
|
||||
for tag in postObject.tags! {
|
||||
if !tagList.isEmpty {
|
||||
for (i, tag) in postObject.tags!.enumerated() {
|
||||
if !tagList.isEmpty && i != postObject.tags!.count - 1 {
|
||||
tagList += ", "
|
||||
}
|
||||
|
||||
|
@ -59,11 +59,17 @@ class PostViewController: UIViewController, UIPopoverPresentationControllerDeleg
|
|||
}
|
||||
}
|
||||
|
||||
#if !targetEnvironment(macCatalyst)
|
||||
updateWindowTitle()
|
||||
#endif
|
||||
}
|
||||
|
||||
override func viewDidAppear(_ animated: Bool) {
|
||||
super.viewDidAppear(animated)
|
||||
|
||||
#if targetEnvironment(macCatalyst)
|
||||
updateWindowTitle()
|
||||
#endif
|
||||
}
|
||||
|
||||
@objc func closePopup() {
|
||||
|
|
Reference in a new issue