Post

Self Check

Self Check is a iOS app that focuses on self care and mindfulness. The app has a intuitive and straightforward design and includes a progress bar as you finish you daily tasks

Features

  • Mindful breathing feature
  • Self Care checklist
  • Progress Bar that tracks checked tasks
  • Persistant

Contributors Forks Stargazers Issues LinkedIn


Open GitHub Repo »

Coming to TestFlight Soon · Report Bug · Request Feature

Built With

  • CSS

App Photos

  • ,,,

Code Snippet

A small snippet of the logic regarding writing to the DirectoryService which allows for persistant data even if app was closed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  func readTasks(model: [dailyTask])-> [dailyTask]{
        do {
            return try DirectoryService.readModelFromDisk()


        } catch {
            print(error.localizedDescription)
            return []
        }
    }
    func removeTask(at index: Int) {
        tasks.remove(at: index)
        do {
            try DirectoryService.writeModelToDisk(tasks)

        } catch {
            print(error.localizedDescription)
        }
    }

    func addTask(){
        if (!taskInput.isEmpty){
            tasks.append(dailyTask(taskGut: taskInput, isCompleted: false))
            taskInput=""

            do {
                try DirectoryService.writeModelToDisk(tasks)

            } catch {
                print(error.localizedDescription)
            }}

    }
This post is licensed under CC BY 4.0 by the author.