From 602a6e7a66b53cbb75a602281515b8197c2f31aa Mon Sep 17 00:00:00 2001 From: Ahmed Shendy Date: Sun, 22 Sep 2024 20:00:37 +0300 Subject: [PATCH] fix: change id of Feedback type to UUID --- Sources/FeedbackKit/Feedback.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Sources/FeedbackKit/Feedback.swift b/Sources/FeedbackKit/Feedback.swift index 49e578f..39ace32 100644 --- a/Sources/FeedbackKit/Feedback.swift +++ b/Sources/FeedbackKit/Feedback.swift @@ -1,5 +1,7 @@ -struct Feedback: Identifiable, Hashable { - var id: String { title } +import Foundation + +struct Feedback: Identifiable, Hashable, Codable { + var id: UUID = .init() let type: FeedbackType let title: String let description: String @@ -37,7 +39,7 @@ extension Feedback { } } -enum FeedbackState { +enum FeedbackState: Codable { case open case closed }