<commit_before># LYRCoreData

**Example code for integrating [LayerKit](https://layer.com/) with Core Data.**

LYRCoreData is a sample application highlighting how to integrate LayerKit, the iOS SDK for the Layer communications platform, with Apple's Core Data object persistence technology. It presents a simple, performant pattern for hydrating a managed object model from an underlying Layer object model using the change notifications emitted by LayerKit.

For some applications it may be desirable to utilize Core Data instead of or in addition to the native Layer domain objects. Such applications include those that...

* Have an existing investment in Core Data for data modeling & persistence.
* Require advanced querying capabilities beyond those provided directly by LayerKit.

## Highlights

* Demonstrates how to cleanly and performantly import Layer objects into Core Data.
* Provides a reference implementation for driving Conversation and Message UI's via an `NSFetchedResultsController`

## Credits

LYRCoreData was lovingly crafted in San Francisco by <NAME> during his work on [Layer](http://layer.com). At Layer, we are building the Communications Layer for the Internet. We value, support, and create works of Open Source engineering excellence.

<NAME>
<commit_msg>Add configuration section<commit_after># LYRCoreData

**Example code for integrating [LayerKit](https://layer.com/) with Core Data.**

LYRCoreData is a sample application highlighting how to integrate LayerKit, the iOS SDK for the Layer communications platform, with Apple's Core Data object persistence technology. It presents a simple, performant pattern for hydrating a managed object model from an underlying Layer object model using the change notifications emitted by LayerKit.

For some applications it may be desirable to utilize Core Data instead of or in addition to the native Layer domain objects. Such applications include those that...

* Have an existing investment in Core Data for data modeling & persistence.
* Require advanced querying capabilities beyond those provided directly by LayerKit.

## Highlights

* Demonstrates how to cleanly and performantly import Layer objects into Core Data.
* Provides a reference implementation for driving Conversation and Message UI's via an `NSFetchedResultsController`

## Configuration

In order to populate the sample app with content, you must configure the following environment variables:

* `LAYER_APP_ID`: The Layer application identifier for you application.
* `LAYER_USER_ID`: The user identifier to authenticate as.

The authentication process requires that you provide a sandbox app identifier that has been configured to use the Layer Identity Provider.

## Credits

LYRCoreData was lovingly crafted in San Francisco by <NAME> during his work on [Layer](http://layer.com). At Layer, we are building the Communications Layer for the Internet. We value, support, and create works of Open Source engineering excellence.

<NAME>

{'fraction_non_alphanumeric': 0.04592691920885015, 'fraction_numerical': 0.0, 'mean_word_length': 5.190871369294606, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5138116', 'n_tokens_mistral': 706, 'n_tokens_neox': 646, 'n_words': 399}