Mantle makes it easy to write a simple model layer for your Cocoa or Cocoa Touch application. Core Data solves certain problems very well. If you need to execute complex queries across your data, handle a huge object graph with lots of relationships, or support undo and redo, Core Data is an excellent fit. If you're just trying to access some JSON objects, Core Data can be a lot of work for little gain. Nonetheless, if you're using or want to use Core Data in your app already, Mantle can still be a convenient translation layer between the API and your managed model objects. In order to serialize your model objects from or into JSON, you need to implement <MTLJSONSerializing> in your MTLModel subclass. Mantle doesn't automatically persist your objects for you. However, MTLModel does conform to <NSCoding>, so model objects can be archived to disk using NSKeyedArchiver.

Features

  • Mantle also comes with miscellaneous cross-platform extensions meant to make your life easier
  • Mantle doesn't automatically persist your objects for you
  • If you are writing an application, add Mantle to your project dependencies directly within Xcode
  • If you are writing a package that requires Mantle as dependency, add it to the dependencies list in its Package.swift manifest
  • Mantle can be a convenient translation layer between the API and your managed model objects

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow Mantle

Mantle Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Mantle!

Additional Project Details

Operating Systems

Apple iPhone, Mac

Programming Language

Objective C

Related Categories

Objective C Frameworks

Registered

2021-05-20