ReadToggle

struct ReadToggle : View

The READ setting toggle which is a setting that can be turned on and off based on user preferences.

If it is enabled then the sender of messages can see that you have read their messages.

Note

Default value is off.
  • UserDefaults for persistent storage.

    Declaration

    Swift

    let defaults: UserDefaults
  • The read status toggle as a boolean saved to UserDefaults

    Declaration

    Swift

    @State
    var readStatusToggle: Bool { get nonmutating set }
  • Declaration

    Swift

    var body: some View { get }