Code Monkey home page Code Monkey logo

swiftnote's Introduction

#SwiftNote

Note taking app with recent notes today widget and iCloud syncing. Written in swift

##Things to watch out for with the today widget

  1. Make sure to set the height using self.preferredContentSize

##Sharing data between the today widget and app

  1. Add an app group through the entitlements screen for both the widget and the app
  2. Make sure to specify the same group for each
  3. Make the core data store url exist in the app group's shared container:
var storeURL = NSFileManager.defaultManager().containerURLForSecurityApplicationGroupIdentifier(kAppGroupIdentifier)
        storeURL = storeURL.URLByAppendingPathComponent("SwiftNote.sqlite");
  1. Use this storeURL in both the today widget and app

##Debugging the today widget

  1. Run the container app (SwiftNote) after making any changes
  2. Stop debugging
  3. In menu bar select Debug -> Attach to process -> By Process Identifier or Name
  4. Attach to the process com.appbrewllc.SwiftNote.SwiftNoteTodayWidget
  5. Breakpoint all the things!

##iCloud syncing

This is currently not working. If anyone knows how to get this working please let me know

swiftnote's People

Contributors

mslathrop avatar tristaaan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.