Skip to content

Commit b04c52c

Browse files
committed
Format SearchableActivityConvertable with swift-format
1 parent 34833bc commit b04c52c

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

Modules/Sources/WordPressData/Swift/SearchableActivityConvertable.swift

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ extension WPActivityType {
3131
case .appSettings:
3232
return NSLocalizedString("WordPress App Settings", comment: "Siri Suggestion to open App Settings")
3333
case .notificationSettings:
34-
return NSLocalizedString("WordPress Notification Settings", comment: "Siri Suggestion to open Notification Settings")
34+
return NSLocalizedString(
35+
"WordPress Notification Settings",
36+
comment: "Siri Suggestion to open Notification Settings"
37+
)
3538
case .support:
3639
return NSLocalizedString("WordPress Help", comment: "Siri Suggestion to open Support")
3740
case .notifications:
@@ -49,30 +52,30 @@ public enum WPActivityUserInfoKeys: String {
4952
@objc public protocol SearchableActivityConvertable {
5053
/// Type name used to uniquly indentify this activity.
5154
///
52-
@objc var activityType: String {get}
55+
@objc var activityType: String { get }
5356

5457
/// Activity title to be displayed in spotlight search.
5558
///
56-
@objc var activityTitle: String {get}
59+
@objc var activityTitle: String { get }
5760

5861
// MARK: Optional Vars
5962

6063
/// A set of localized keywords that can help users find the activity in search results.
6164
///
62-
@objc optional var activityKeywords: Set<String>? {get}
65+
@objc optional var activityKeywords: Set<String>? { get }
6366

6467
/// The date after which the activity is no longer eligible for indexing. If not set,
6568
/// the expiration date will default to one week from the current date.
6669
///
67-
@objc optional var activityExpirationDate: Date? {get}
70+
@objc optional var activityExpirationDate: Date? { get }
6871

6972
/// A dictionary containing state information related to this indexed activity.
7073
///
71-
@objc optional var activityUserInfo: [String: String]? {get}
74+
@objc optional var activityUserInfo: [String: String]? { get }
7275

7376
/// Activity description
7477
///
75-
@objc optional var activityDescription: String? {get}
78+
@objc optional var activityDescription: String? { get }
7679
}
7780

7881
public extension SearchableActivityConvertable where Self: UIViewController {

0 commit comments

Comments
 (0)