diff --git a/Tusker/Screens/Compose/ComposeViewController.swift b/Tusker/Screens/Compose/ComposeViewController.swift
index bc75ff54a6..96b645ec6b 100644
--- a/Tusker/Screens/Compose/ComposeViewController.swift
+++ b/Tusker/Screens/Compose/ComposeViewController.swift
@@ -187,6 +187,18 @@ class ComposeViewController: UIViewController {
// }
}
+ override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
+ super.traitCollectionDidChange(previousTraitCollection)
+
+ let imageName: String
+ if traitCollection.userInterfaceStyle == .dark {
+ imageName = "photo.fill"
+ } else {
+ imageName = "photo"
+ }
+ addAttachmentButton.setImage(UIImage(systemName: imageName), for: .normal)
+ }
+
func createFormattingButtons() -> [UIBarButtonItem] {
guard Preferences.shared.statusContentType != .plain else {
return []
diff --git a/Tusker/Screens/Compose/ComposeViewController.xib b/Tusker/Screens/Compose/ComposeViewController.xib
index 02fa6cf11e..9ed1e78e0a 100644
--- a/Tusker/Screens/Compose/ComposeViewController.xib
+++ b/Tusker/Screens/Compose/ComposeViewController.xib
@@ -136,7 +136,7 @@
-
+
@@ -198,6 +198,6 @@
-
+