-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import Foundation | ||
|
||
/// A model representing a flagging option used in content moderation. | ||
/// - `title`: The title of the flagging option. | ||
/// - `description`: An optional description that provides more detail about the flagging option. | ||
/// - `id`: A unique identifier for the flagging option, based on the `title`. | ||
|
||
struct FlagOption: Identifiable { | ||
let title: String | ||
let description: String? | ||
var id: String { title } | ||
|
||
/// `FlagOption` instances representing different categories of content that can be flagged. | ||
static let flagContentCategories: [FlagOption] = [ | ||
FlagOption( | ||
title: String(localized: .localizable.flagContentSpamTitle), | ||
description: nil | ||
), | ||
FlagOption( | ||
title: String(localized: .localizable.flagContentHarassmentTitle), | ||
description: String(localized: .localizable.flagContentHarassmentDescription) | ||
), | ||
FlagOption( | ||
title: "NSFW", | ||
description: String(localized: .localizable.flagContentNudityDescription) | ||
), | ||
FlagOption( | ||
title: String(localized: .localizable.flagContentIllegalTitle), | ||
description: String(localized: .localizable.flagContentIllegalDescription) | ||
), | ||
FlagOption( | ||
title: String(localized: .localizable.flagContentOtherTitle), | ||
description: String(localized: .localizable.flagContentOtherDescription) | ||
) | ||
] | ||
} |