Add subjects for activity item sources
This commit is contained in:
parent
cc401fce8c
commit
18d7917756
|
@ -37,4 +37,8 @@ class AccountActivityItemSource: NSObject, UIActivityItemSource {
|
||||||
return metadata
|
return metadata
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func activityViewController(_ activityViewController: UIActivityViewController, subjectForActivityType activityType: UIActivity.ActivityType?) -> String {
|
||||||
|
return "\(account.displayName) (@\(account.acct)"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,4 +40,8 @@ class StatusActivityItemSource: NSObject, UIActivityItemSource {
|
||||||
return metadata
|
return metadata
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func activityViewController(_ activityViewController: UIActivityViewController, subjectForActivityType activityType: UIActivity.ActivityType?) -> String {
|
||||||
|
return "Post by @\(status.account.acct)"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue