Text snippet implementation
The next user story is "I want to enter text when creating a snippet". The tasks we need to complete for this feature are:
- Create a new subclass of
SnippetData
that represents theTextSnippet
- Create a new view controller with a
UITextField
that saves the text input in theTextSnippet
Now it's time to start building out useful snippet-creation tools. Right now we spawn some empty SnippetData
structs, but there's no user data in there. First we're going to add to our SnippetData
struct to allow it to hold user data, and then build an interface that allows the user to enter and save the data.
Update SnippetData model
Current task: Create a new subclass of SnippetData
that represents the TextSnippet
.
So far, our data model doesn't ...
Get Learning Xcode 8 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.