App agenda with CoreData

Last update: Oct 19, 2021

iOS Agenda App with CORE DATA

Ejemplo de código para una aplicación de agenda, gestionando el modelo de datos con CoreData.

Built using XCode 13.0 (Swift 5)

¿Cómo ejecutar el proyecto?

  1. Clona este repositorio
  2. Abre un terminal y muevete hacia el directorio del proyecto
  3. Abre Agenda App.xcodeproj y ejecuta el proyecto en un simulador o en tu dispositivo.

¿Cómo fue creado?

  1. Se ha usado el patron de arquitectura MVC
  2. Se ha creado un CoreDataManager que gestiona el acceso a CoreData y que permite acceder, guardar y gestionar el contexto de CoreData.
  3. Esta aplicación contiene dos vistas gestionadas por un NavigationController, la primera vista una vista principal gestionada por UITableViewController que presenta en forma de tableView los contactos que han sido guardados en CoreData.
  4. Si haces un swipe left en una de las celdas mencionadas, aparecerá una opción que te permite eliminar el contacto de la agenda y que elimina al momento la fila donde se encuentre ese contacto.
  5. En la vista principal se encuentra un botón UIBarButtonItem que a través de un segue te dirigue a una vista detalle dónde se puede añadir un nuevo contacto a la agenda. En caso de guardar el contacto, la vista se encargara de gestionar ese cambio.
  6. Si se hace tap en unas de las celdas de la vista de tabla cargará la vista detalle mencionada anteriormente pero mostrando los datos del contacto que ha sido añadido, teniendo la posibilidad de poder guardar los cambios en ese contacto.
  7. CoreDataManager usa el patrón de diseño Singleton para acceder a sus funcionalidades.

Código

Cuando la aplicación se ejecuta, en las funciones relativas al ciclo de vida de la app, concretamente el método viewWillAppear ejecuta unas sentencias que permite hacer un fetch a CoreData obteniendo los contactos que han sido guardados anteriormente, esos datos son asignados a un array llamado searchResults el cual es usado para cargar los datos en la vista de tabla a través del método tableView.reloadData() ejecutado en el hilo principal.

Este proyecto no usa librerias de tercero ya que todas las funcionalidades pueden ser creadas de manera nativa.

Saludos!

GitHub

https://github.com/MMartinez2001/agendaApp
You might also like...

CoreData + UI/Unit Tests + Pure Swift

CoreData + UI/Unit Tests + Pure Swift

What is it? 🙋🏻 It's a Todo iOS Application with offline support by the use of Core Data which has been developed as a code challenge. It's written p

Jun 1, 2022

SwiftUI - iOS notes App that integrates Core Data with SwiftUI App Life Cycle

SwiftUI - iOS notes App that integrates Core Data with SwiftUI App Life Cycle

Devote (Notes App) SwiftUI Masterclass project Integration between Core Data and SwiftUI App Life Cycle Custom Toggle style and checkbox Read, Update

Mar 16, 2022

Quillow is an elegant book management app on the App Store that allows you to search, add and track the books you've consumed.

Quillow Quillow is an elegant book management app on the App Store that allows you to search, add and track the books you've consumed. Please use the

May 17, 2022

HitList is a Swift App shows the implementation of Core Data.

HitList is a Swift App shows the implementation of Core Data.

HitList HitList is a Swift App shows the implementation of Core Data. It is the demo app of Ray Wenderlich's tech blog. For details please reference G

Dec 17, 2021

UI Kit for the STREAMD anime app. Generic UI objects go here, nothing to do with anime

STREAMDUIKit UI Kit for the STREAMD anime app. Generic UI objects go here, nothi

Jan 14, 2022

SwiftUIDay49To61 - Includes CoreData, Networking learning and my custom MVVM CoreData implementation from 100 days of SwiftUI

SwiftUIDay49To61 - Includes CoreData, Networking learning and my custom MVVM CoreData implementation from 100 days of SwiftUI

Includes CoreData, Networking learning and my custom MVVM CoreData implementation from 100 days of SwiftUI by "Hacking with Swift"

Feb 11, 2022

TaskManager-CoreData - Swift IOS Application created primarily to familiarize with the CoreData framework and gain knowledge to work with it

TaskManager-CoreData - Swift IOS Application created primarily to familiarize with the CoreData framework and gain knowledge to work with it

TaskManager-CoreData Swift IOS Application The application was created primarily

Feb 13, 2022

A todo list iOS app developed with swift5 and coredata to persist data, this app help people organise their tasks on categories.

A todo list iOS app developed with swift5 and coredata to persist data, this app help people organise their tasks on categories.

A todo list iOS app developed with swift5 and coredata to persist data, this app help people organise their tasks on categories. The app is simple, intuitive, and easy to use and update tasks informations.

Nov 17, 2021

Simple SwiftUI + CoreData app

Footnote Hello! Before you interact with this repository, please check out our Code of Conduct and Contributing Guidelines. Footnote is a SwiftUI + Co

Apr 10, 2022

SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.

SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.

Articles related to this project Clean Architecture for SwiftUI Programmatic navigation in SwiftUI project Separation of Concerns in Software Design C

Jun 24, 2022

A Simple ToDo app developed using SwiftUI, Combine and Coredata

A Simple ToDo app developed using SwiftUI, Combine and Coredata

SwiftUI_Tasks Tasks is simple ToDo app developed using SwiftUI and Coredata which having features like Add,Delete,Rearrange and send notification base

May 1, 2022

This repository contains a detailed sample app that implements VIPER architecture in iOS using libraries and frameworks like Alamofire, AlamofireImage, PKHUD, CoreData etc.

This repository contains a detailed sample app that implements VIPER architecture in iOS using libraries and frameworks like Alamofire, AlamofireImage, PKHUD, CoreData etc.

iOS Viper Architecture: Sample App This repository contains a detailed sample app that implements VIPER architecture using libraries and frameworks li

Jun 15, 2022

SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.

SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.

Articles related to this project Clean Architecture for SwiftUI Programmatic navigation in SwiftUI project Separation of Concerns in Software Design C

Jun 26, 2022

iOS app built with UIKit and programatic auto-layouts to learn and apply knowledge. Offline storage using CoreData and Caching

PurpleImage Search Pixabay for images and save them offline to share and view To use: Clone the GitHub project, build and run in Xcode. The API is com

May 10, 2022

This a simple swiftui app where i used mvvm architecture, coredata swiftui and so on..

This a simple swiftui app where i used mvvm architecture, coredata swiftui and so on..

SwiftUI MVVM COREDATA NOTE APP This a simple swiftui app where i used mvvm architecture, coredata swiftui and so on... #FEATURES SWIFTUI MVVM COREDATA

May 23, 2022

Simple IOS notes app written programmatically without storyboard using UIKit and CoreData

Simple IOS notes app written programmatically without storyboard using UIKit and CoreData

Notes Simple Notes app. Swift, UIKit, CoreData Description Simple IOS notes app

Mar 22, 2022

News App 📱 built to demonstrate the use of SwiftUI 3 features, Async/Await, CoreData and MVVM architecture pattern.

News App 📱 built to demonstrate the use of SwiftUI 3 features, Async/Await, CoreData and MVVM architecture pattern.

Box Feed News App 📱 built to demonstrate the use of following features, SwiftUI 3 Async/Await AsyncImage List Refreshable Swipe Actions Separator Cor

May 1, 2022

DataKernel is a minimalistic wrapper around CoreData stack to ease persistence operations.

DataKernel What is DataKernel? DataKernel is a minimalistic wrapper around CoreData stack to ease persistence operations. It is heavily inspired by Su

Jun 2, 2022

SugarRecord is a persistence wrapper designed to make working with persistence solutions like CoreData in a much easier way.

SugarRecord is a persistence wrapper designed to make working with persistence solutions like CoreData in a much easier way.

What is SugarRecord? SugarRecord is a persistence wrapper designed to make working with persistence solutions like CoreData in a much easier way. Than

Jun 16, 2022
Related tags
iOS app built with UIKit and programatic auto-layouts to learn and apply knowledge. Offline storage using CoreData and Caching

PurpleImage Search Pixabay for images and save them offline to share and view To use: Clone the GitHub project, build and run in Xcode. The API is com

May 10, 2022
Simple IOS notes app written programmatically without storyboard using UIKit and CoreData
Simple IOS notes app written programmatically without storyboard using UIKit and CoreData

Notes Simple Notes app. Swift, UIKit, CoreData Description Simple IOS notes app

Mar 22, 2022
DataKernel is a minimalistic wrapper around CoreData stack to ease persistence operations.

DataKernel What is DataKernel? DataKernel is a minimalistic wrapper around CoreData stack to ease persistence operations. It is heavily inspired by Su

Jun 2, 2022
SugarRecord is a persistence wrapper designed to make working with persistence solutions like CoreData in a much easier way.
SugarRecord is a persistence wrapper designed to make working with persistence solutions like CoreData in a much easier way.

What is SugarRecord? SugarRecord is a persistence wrapper designed to make working with persistence solutions like CoreData in a much easier way. Than

Jun 16, 2022
CoreData based Swift ORM
CoreData based Swift ORM

Swift ORM Features Pure swift objects - no more subclasses of NSManagedObject Extensible attribute system - store any type in CoreData storage by impl

Jun 16, 2022
A Swift framework that wraps CoreData, hides context complexity, and helps facilitate best practices.
A Swift framework that wraps CoreData, hides context complexity, and helps facilitate best practices.

Cadmium is a Core Data framework for Swift that enforces best practices and raises exceptions for common Core Data pitfalls exactly where you make the

May 17, 2022
🎯 PredicateKit allows Swift developers to write expressive and type-safe predicates for CoreData using key-paths, comparisons and logical operators, literal values, and functions.
🎯 PredicateKit allows Swift developers to write expressive and type-safe predicates for CoreData using key-paths, comparisons and logical operators, literal values, and functions.

?? PredicateKit PredicateKit is an alternative to NSPredicate allowing you to write expressive and type-safe predicates for CoreData using key-paths,

Jun 17, 2022
Domain Specific Language to safely build predicates and requests to fetch a CoreData store

SafeFetching This library offers a DSL (Domain Specific Language) to safely build predicates and requests to fetch a CoreData store. Also a wrapper ar

May 8, 2022
A small set of utilities to make working with CoreData and Swift a bit easier.

SuperRecord =================== SUPPORTS SWIFT 2.0 from Version >= 1.4 ** SUPPORTS SWIFT 1.2 from Version <= 1.3 Both iOS and WatchOS A Swift CoreData

May 14, 2022
A Swift framework that wraps CoreData, hides context complexity, and helps facilitate best practices.
A Swift framework that wraps CoreData, hides context complexity, and helps facilitate best practices.

Cadmium is a Core Data framework for Swift that enforces best practices and raises exceptions for common Core Data pitfalls exactly where you make them.

May 17, 2022