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
|
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() {
|
||||||
|
|
Reference in a new issue