Skip to content
Snippets Groups Projects
Commit 6e16c76e authored by Oliver Wiese's avatar Oliver Wiese
Browse files

Refactornames

parent 4541f82b
No related branches found
No related tags found
No related merge requests found
Showing
with 38 additions and 38 deletions
...@@ -347,7 +347,7 @@ extension DisplayMail { ...@@ -347,7 +347,7 @@ extension DisplayMail {
} }
struct DisplayProtocols_Previews: PreviewProvider { struct DisplayProtocols_Previews: PreviewProvider {
static let mails = DummyData.mails static let mails = ProxyData.mails
static let deviceName = "iPhone 11 Pro Max" static let deviceName = "iPhone 11 Pro Max"
static var previews: some View { static var previews: some View {
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -74,14 +74,14 @@ struct Tab { ...@@ -74,14 +74,14 @@ struct Tab {
#if DEBUG #if DEBUG
struct Layout_Previews: PreviewProvider { struct Layout_Previews: PreviewProvider {
static let simulator = Simulators<ReadMainView<PseuoMail>>() static let simulator = Simulators<ReadMainView<ProxyMail>>()
static let deviceNames: [String] = [ static let deviceNames: [String] = [
"iPhone SE", "iPhone SE",
"iPhone 11 Pro Max" "iPhone 11 Pro Max"
] ]
static var previews: some View { static var previews: some View {
simulator.previews(view: ReadMainView(mail: DummyData.SecureMail)) simulator.previews(view: ReadMainView(mail: ProxyData.SecureMail))
} }
} }
#endif #endif
......
...@@ -82,7 +82,7 @@ struct AttachmentsViewMain: View { ...@@ -82,7 +82,7 @@ struct AttachmentsViewMain: View {
struct AttachmentsViewMain_Previews: PreviewProvider { struct AttachmentsViewMain_Previews: PreviewProvider {
static var previews: some View { static var previews: some View {
AttachmentsViewMain(attachments: [PseudoAttachment()]) AttachmentsViewMain(attachments: [ProxyAttachment()])
} }
} }
......
...@@ -236,7 +236,7 @@ struct MessageViewMain <M: DisplayMail>: View { ...@@ -236,7 +236,7 @@ struct MessageViewMain <M: DisplayMail>: View {
struct MessageViewMain_Previews: PreviewProvider { struct MessageViewMain_Previews: PreviewProvider {
static var previews: some View { static var previews: some View {
let sim = Simulators<MessageViewMain<PseuoMail>>() let sim = Simulators<MessageViewMain<ProxyMail>>()
return sim.previews(view: MessageViewMain(mail: DummyData.SecureMail)) return sim.previews(view: MessageViewMain(mail: ProxyData.SecureMail))
} }
} }
...@@ -246,6 +246,6 @@ struct DialogButtonLabel: View { ...@@ -246,6 +246,6 @@ struct DialogButtonLabel: View {
struct SecurityBriefingView_Previews: PreviewProvider { struct SecurityBriefingView_Previews: PreviewProvider {
static var previews: some View { static var previews: some View {
let sim = Simulators<SecurityBriefingView<PseuoMail>>() let sim = Simulators<SecurityBriefingView<PseuoMail>>()
return sim.previews(view: SecurityBriefingView(mail: DummyData.CorruptedMail)) return sim.previews(view: SecurityBriefingView(mail: ProxyData.CorruptedMail))
} }
} }
...@@ -66,9 +66,9 @@ struct SmallContactListView <C: DisplayContact>: View { ...@@ -66,9 +66,9 @@ struct SmallContactListView <C: DisplayContact>: View {
struct SmallContactListView_Previews: PreviewProvider { struct SmallContactListView_Previews: PreviewProvider {
static let alice = PseudoContact(name: "Alice", addr: "alice@example.com", myImage: PseudoContact.makeImg("Alice", color: .blue)) static let alice = ProxyContact(name: "Alice", addr: "alice@example.com", myImage: ProxyContact.makeImg("Alice", color: .blue))
static let bob = PseudoContact(name: "Bob", addr: "Bob.lord.of.kingsbridge.and.king.of.england@huge.subdomain.with. a.long.long.long.domain.example.com", myImage: PseudoContact.makeImg("Bob", color: .red)) static let bob = ProxyContact(name: "Bob", addr: "Bob.lord.of.kingsbridge.and.king.of.england@huge.subdomain.with. a.long.long.long.domain.example.com", myImage: ProxyContact.makeImg("Bob", color: .red))
static let charlie = PseudoContact(name: "Charlie", addr: "charlie@example.com", myImage: PseudoContact.makeImg("Charlie", color: .green)) static let charlie = ProxyContact(name: "Charlie", addr: "charlie@example.com", myImage: ProxyContact.makeImg("Charlie", color: .green))
static var previews: some View { static var previews: some View {
VStack{ VStack{
......
...@@ -172,7 +172,7 @@ struct SenderViewMain <M: DisplayMail>: View { ...@@ -172,7 +172,7 @@ struct SenderViewMain <M: DisplayMail>: View {
struct SenderView_Previews: PreviewProvider { struct SenderView_Previews: PreviewProvider {
static var previews: some View { static var previews: some View {
let sim = Simulators<SenderViewMain<PseuoMail>>() let sim = Simulators<SenderViewMain<ProxyMail>>()
return sim.previews(view: SenderViewMain(mail: DummyData.SecureMail)) return sim.previews(view: SenderViewMain(mail: ProxyData.SecureMail))
} }
} }
...@@ -21,7 +21,7 @@ struct CircleImage: View { ...@@ -21,7 +21,7 @@ struct CircleImage: View {
struct CircleImage_Previews: PreviewProvider { struct CircleImage_Previews: PreviewProvider {
static var previews: some View { static var previews: some View {
CircleImage(image: PseudoContact.makeImg("Alice", color: .red)) CircleImage(image: ProxyContact.makeImg("Alice", color: .red))
} }
} }
......
...@@ -80,7 +80,7 @@ struct DialogView <D: Dialog> : View { ...@@ -80,7 +80,7 @@ struct DialogView <D: Dialog> : View {
} }
struct DialogView_Previews: PreviewProvider { struct DialogView_Previews: PreviewProvider {
static let options = DummyData.SecureMail.dialog static let options = ProxyData.SecureMail.dialog
static var previews: some View { static var previews: some View {
ScrollView{ ScrollView{
DialogView(option: options, ctaAction: action, additionalAction: action, dismissAction: action, extend: false) DialogView(option: options, ctaAction: action, additionalAction: action, dismissAction: action, extend: false)
......
...@@ -50,13 +50,13 @@ struct MailView <M: DisplayMail>: View { ...@@ -50,13 +50,13 @@ struct MailView <M: DisplayMail>: View {
struct MailView_Previews: PreviewProvider { struct MailView_Previews: PreviewProvider {
static let simulator = Simulators<MailView<PseuoMail>>() static let simulator = Simulators<MailView<ProxyMail>>()
static let deviceNames: [String] = [ static let deviceNames: [String] = [
"iPhone SE", "iPhone SE",
"iPhone 11 Pro Max" "iPhone 11 Pro Max"
] ]
static var previews: some View { static var previews: some View {
simulator.previews(view: MailView(mail: DummyData.SecureMail))//DummyData.SecureMail)) simulator.previews(view: MailView(mail: ProxyData.SecureMail))//DummyData.SecureMail))
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment