Commit f441c888 authored by Oliver Wiese's avatar Oliver Wiese
Browse files

clean code (see comments)

parent e507ccc2
......@@ -214,7 +214,7 @@
786C2433142C638AE0605CD2 /* Pods_enzevalos_iphoneUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 434D0E988CDFB6D2D46C1EA8 /* Pods_enzevalos_iphoneUITests.framework */; };
7FE3F9D6260E76A40025340B /* ImagePicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7FE3F9D5260E76A40025340B /* ImagePicker.swift */; };
7FE3F9E9260F45600025340B /* AddAttachmentsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7FE3F9E8260F45600025340B /* AddAttachmentsView.swift */; };
7FE3F9FA260F467A0025340B /* AddAttachmentsModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7FE3F9F9260F467A0025340B /* AddAttachmentsModel.swift */; };
7FE3F9FA260F467A0025340B /* Attachment.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7FE3F9F9260F467A0025340B /* Attachment.swift */; };
971D404A2428C87E002FCD31 /* BadgeCaseView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 971D40492428C87E002FCD31 /* BadgeCaseView.swift */; };
97BDE0432429188500B0BF03 /* BadgeProgressView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97BDE0422429188500B0BF03 /* BadgeProgressView.swift */; };
988C9C5D240D507A006213F0 /* UrlStringExtensionTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 988C9C5C240D507A006213F0 /* UrlStringExtensionTests.swift */; };
......@@ -593,7 +593,7 @@
71DFE5B9240679E80042019C /* HeaderExtractionValues.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HeaderExtractionValues.swift; sourceTree = "<group>"; };
7FE3F9D5260E76A40025340B /* ImagePicker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImagePicker.swift; sourceTree = "<group>"; };
7FE3F9E8260F45600025340B /* AddAttachmentsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddAttachmentsView.swift; sourceTree = "<group>"; };
7FE3F9F9260F467A0025340B /* AddAttachmentsModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddAttachmentsModel.swift; sourceTree = "<group>"; };
7FE3F9F9260F467A0025340B /* Attachment.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Attachment.swift; sourceTree = "<group>"; };
8EE6653EBD27D31263A36CA9 /* Pods-enzevalos_iphoneTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-enzevalos_iphoneTests.release.xcconfig"; path = "Target Support Files/Pods-enzevalos_iphoneTests/Pods-enzevalos_iphoneTests.release.xcconfig"; sourceTree = "<group>"; };
971D40492428C87E002FCD31 /* BadgeCaseView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BadgeCaseView.swift; sourceTree = "<group>"; };
97BDE0422429188500B0BF03 /* BadgeProgressView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BadgeProgressView.swift; sourceTree = "<group>"; };
......@@ -1236,7 +1236,7 @@
isa = PBXGroup;
children = (
7FE3F9E8260F45600025340B /* AddAttachmentsView.swift */,
7FE3F9F9260F467A0025340B /* AddAttachmentsModel.swift */,
7FE3F9F9260F467A0025340B /* Attachment.swift */,
7FE3F9D5260E76A40025340B /* ImagePicker.swift */,
47FA8EC2254D9E01006883D0 /* RecipientFieldModel.swift */,
47E04DD22559992A00189320 /* RecipientsModel.swift */,
......@@ -1926,7 +1926,7 @@
6789425F2430C3B300C746D1 /* MailComparison.swift in Sources */,
A114E4321FACB23000E40243 /* StringExtension.swift in Sources */,
472F398C1E2519C8009260FB /* CNContactExtension.swift in Sources */,
7FE3F9FA260F467A0025340B /* AddAttachmentsModel.swift in Sources */,
7FE3F9FA260F467A0025340B /* Attachment.swift in Sources */,
476406972416B54D00C7D426 /* InboxCoordinator.swift in Sources */,
0EF148082422572500B3C198 /* general-helpers.c in Sources */,
97BDE0432429188500B0BF03 /* BadgeProgressView.swift in Sources */,
......
......@@ -21,16 +21,7 @@ import SwiftUI
struct AddAttachmentsView: View {
@ObservedObject var model: ComposeModel
@State private var attachFile = false
@State private var imageAttachment: UIImage? {
didSet {
if let newImage = imageAttachment {
// TODO: This is closure is never executed because
// imageAttachments is not set properly
// check ImagePicker
print("user chose image")
}
}
}
@State private var imageAttachment: UIImage?
// Two sheet states possible: full screen preview OR image picker
@State private var sheetState: SheetState?
......
//
// AddAttachmentsModel.swift
// Attachment.swift
// enzevalos_iphone
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment