Compare commits

..

3 Commits

Author SHA1 Message Date
Shadowfacts 392e51eb3e
Remove unnecessary prefernces change notification 2020-08-15 17:31:24 -04:00
Shadowfacts 86d5a73c85
Change menu item order
Open in Safari should be the closest to the user's finger when tapping a
menu button
2020-08-15 17:20:09 -04:00
Shadowfacts eaefa366b7
Fix displaying images on iOS 14 2020-08-15 17:03:02 -04:00
5 changed files with 8 additions and 8 deletions

2
Gifu

@ -1 +1 @@
Subproject commit ed572f53ce58b8e23499abeb3a926033cbe480f7
Subproject commit 9b1a6461aa3b5f66cb0ed3a50c5523db0b4fb007

View File

@ -46,6 +46,8 @@ class LargeImageImageContentView: UIImageView, GIFAnimatable, LargeImageContentV
}
override public func display(_ layer: CALayer) {
super.display(layer)
updateImageIfNeeded()
}
}

View File

@ -77,10 +77,6 @@ struct PreferencesView: View {
}
.listStyle(GroupedListStyle())
.navigationBarTitle(Text("Preferences"), displayMode: .inline)
.onDisappear {
// todo: this onDisappear callback is not called in beta 4, check again in beta 5
NotificationCenter.default.post(name: .preferencesChanged, object: nil)
}
// }
}

View File

@ -83,8 +83,8 @@ extension MenuPreviewProvider {
]
return [
UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: shareSection),
UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: actionsSection),
UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: shareSection)
]
}
@ -115,8 +115,8 @@ extension MenuPreviewProvider {
let shareSection = actionsForURL(hashtag.url, sourceView: sourceView)
return [
UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: shareSection),
UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: actionsSection),
UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: shareSection)
]
}
@ -174,8 +174,8 @@ extension MenuPreviewProvider {
]
return [
UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: actionsSection),
UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: shareSection),
UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: actionsSection),
]
}

View File

@ -177,6 +177,8 @@ class AttachmentView: UIImageView, GIFAnimatable {
}
override func display(_ layer: CALayer) {
super.display(layer)
updateImageIfNeeded()
}