Skip to content

An iOS time tracking app that encourages users to track tasks under 30 minutes.

License

Notifications You must be signed in to change notification settings

landonepps/TimeCrumbs

Repository files navigation

TimeCrumbs

A time tracking app that encourages users to track tasks under 30 minutes.

Core Data

The persistent container is created in the App Delegate. Access it by getting a reference to the App Delegate.

let appDelegate = UIApplication.shared.delegate as? AppDelegate
appDelegate?.persistentContainer

Instead of using a singleton, we use dependency injection to set the managed object context for the view controllers.

e.g. In SceneDelegate.swift

if let rootVC = window?.rootViewController as? ViewController {
    let appDelegate = UIApplication.shared.delegate as? AppDelegate
    rootVC.moc = appDelegate?.persistentContainer.viewContext
}

Git

Feature branch workflow

Create feature branch

# switch to develop
git checkout develop
# fetch the latest changes
git pull origin develop
# create feature branch
git checkout -b feature/add-some-feature

Commit changes & push to remote

# make changes, add, and commit
git add .
git commit -m "Commit message"
# push feature branch to remote repo
git push -u origin feature/add-some-feature

Pull feature branch into develop

# switch to develop
git checkout develop
# pull changes to develop
git pull
# pull changes from (remote) feature to (local) develop
git pull origin feature/add-some-feature
# push merged local develop branch to remote
git push

Delete feature branch when done

# delete remote feature branch
git push origin --delete feature/add-some-feature
# delete local feature branch
git branch -d feature/add-some-feature

About

An iOS time tracking app that encourages users to track tasks under 30 minutes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages