Skip to content

Commit

Permalink
refactor: Ensure PreviewHelper is only in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed Jun 21, 2023
1 parent a27408d commit 59d971d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Mail/Helpers/PreviewHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import MailCore
import RealmSwift
import SwiftUI

struct PreviewHelper {
#if DEBUG
enum PreviewHelper {
static let sampleMailboxManager = MailboxManager(mailbox: sampleMailbox, apiFetcher: MailApiFetcher())

static let sampleMailbox = Mailbox(uuid: "",
Expand Down Expand Up @@ -132,3 +133,4 @@ struct PreviewHelper {
expirationDate: Date()
))
}
#endif

0 comments on commit 59d971d

Please sign in to comment.