From 25910845dcc3999e45f1dcf03b590a13a75a13ce Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 11 Sep 2018 18:17:48 -0400 Subject: [PATCH] Add more button to status --- Artwork/Icons/More.svg | 84 ++++++++++++++++++ .../More.imageset/Contents.json | 1 + Tusker/Assets.xcassets/More.imageset/More.pdf | Bin 1077 -> 1070 bytes .../UIViewController+Delegates.swift | 15 +++- .../ProfileHeaderTableViewCell.xib | 10 +-- .../ConversationMainStatusTableViewCell.swift | 4 + .../ConversationMainStatusTableViewCell.xib | 20 ++++- Tusker/Views/Status/StatusTableViewCell.swift | 6 +- Tusker/Views/Status/StatusTableViewCell.xib | 20 ++++- 9 files changed, 145 insertions(+), 15 deletions(-) create mode 100644 Artwork/Icons/More.svg diff --git a/Artwork/Icons/More.svg b/Artwork/Icons/More.svg new file mode 100644 index 00000000..2c9236d7 --- /dev/null +++ b/Artwork/Icons/More.svg @@ -0,0 +1,84 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/Tusker/Assets.xcassets/More.imageset/Contents.json b/Tusker/Assets.xcassets/More.imageset/Contents.json index 068cb005..7bdf4445 100644 --- a/Tusker/Assets.xcassets/More.imageset/Contents.json +++ b/Tusker/Assets.xcassets/More.imageset/Contents.json @@ -19,6 +19,7 @@ "author" : "xcode" }, "properties" : { + "template-rendering-intent" : "template", "preserves-vector-representation" : true } } \ No newline at end of file diff --git a/Tusker/Assets.xcassets/More.imageset/More.pdf b/Tusker/Assets.xcassets/More.imageset/More.pdf index f1d42118b83a6b1441674b864c41da7495fe79c0..e52037e651393603eb2dc228bef7d1511a381142 100644 GIT binary patch delta 319 zcmdnWv5sScPrYkEG~Zzbp5Ny+i#yu$s-{pyu|8?Y>F2E{2nrYicdJzs*&4hNA>m`}B>WTf8Hz^e$h`{2|+&b~9{| zuoiDfI%71XU^Ug?=mq8L2FDLhxyqCHcHbenD;lrlAVwOe< z1|Xo2r@#ef7#J8Em`<)>R + @@ -121,6 +131,7 @@ + @@ -148,6 +159,7 @@ + diff --git a/Tusker/Views/Status/StatusTableViewCell.swift b/Tusker/Views/Status/StatusTableViewCell.swift index c133e47b..72fdd758 100644 --- a/Tusker/Views/Status/StatusTableViewCell.swift +++ b/Tusker/Views/Status/StatusTableViewCell.swift @@ -25,7 +25,7 @@ protocol StatusTableViewCellDelegate { func showLargeImage(_ image: UIImage, description: String?, animatingFrom originView: UIView) - func updatedStatus(for cell: StatusTableViewCell, status: Status) + func showMoreOptions(status: Status) } @@ -248,6 +248,10 @@ class StatusTableViewCell: UITableViewCell, PreferencesAdaptive { } } + @IBAction func morePressed(_ sender: Any) { + delegate?.showMoreOptions(status: status) + } + } extension StatusTableViewCell: HTMLContentLabelDelegate { diff --git a/Tusker/Views/Status/StatusTableViewCell.xib b/Tusker/Views/Status/StatusTableViewCell.xib index 704abfa2..c473c0d5 100644 --- a/Tusker/Views/Status/StatusTableViewCell.xib +++ b/Tusker/Views/Status/StatusTableViewCell.xib @@ -86,8 +86,8 @@ - - + + + @@ -127,6 +137,7 @@ + @@ -156,6 +167,7 @@ +