diff --git a/DLPrototype.xcodeproj/project.pbxproj b/DLPrototype.xcodeproj/project.pbxproj index 33e8c7be..704a1534 100644 --- a/DLPrototype.xcodeproj/project.pbxproj +++ b/DLPrototype.xcodeproj/project.pbxproj @@ -912,7 +912,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 61; + CURRENT_PROJECT_VERSION = 62; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = "\"DLPrototype/Preview Content\""; DEVELOPMENT_TEAM = 6DT7L2N5X6; @@ -940,7 +940,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 61; + CURRENT_PROJECT_VERSION = 62; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = "\"DLPrototype/Preview Content\""; DEVELOPMENT_TEAM = 6DT7L2N5X6; diff --git a/DLPrototype/Views/Notes/NoteCreate.swift b/DLPrototype/Views/Notes/NoteCreate.swift index 0c7b35a5..378435cf 100644 --- a/DLPrototype/Views/Notes/NoteCreate.swift +++ b/DLPrototype/Views/Notes/NoteCreate.swift @@ -21,16 +21,6 @@ struct NoteCreate: View { CoreDataJob(moc: moc).all() } - private var pickerItems: [CustomPickerItem] { - var items: [CustomPickerItem] = [CustomPickerItem(title: "Choose a job", tag: 0)] - - for job in jobs { - items.append(CustomPickerItem(title: job.jid.string, tag: Int(job.jid))) - } - - return items - } - var body: some View { if showForm { form @@ -45,8 +35,7 @@ struct NoteCreate: View { VStack(alignment: .leading) { VStack(alignment: .leading, spacing: 22) { Title(text: "Create a note", image: "note.text.badge.plus") - - FancyPicker(onChange: pickerChange, items: pickerItems, transparent: true, labelText: "Job: \(selectedJob?.jid.string ?? "N/A")", showLabel: true) + JobPicker(onChange: pickerChange) FancyTextField(placeholder: "Title", lineLimit: 1, onSubmit: {}, text: $title) FancyTextField(placeholder: "Content", lineLimit: 20, onSubmit: {}, transparent: true, text: $content)