Skip to content

Commit 9a1cf20

Browse files
authored
Update README with TaskKit introduction and features
Added introduction and main features of TaskKit.
1 parent ad5167f commit 9a1cf20

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# TaskKit
22

3-
为用户设置 app 的完成任务,并记录用户完成情况
3+
介绍:
4+
当我们的app需要设置一些任务,用来引导用户完成这些学习任务,逐步熟悉app功能的时候,可以考虑使用TaskKit。
5+
当需要针对用户完成任务的情况,为用户划分不同level的时候,也可以考虑使用TaskKit。
46

5-
2025-12-06:发布 0.1 版
7+
主要功能:
8+
1、支持用户在app初始化的时候定义引导任务,以及激活的奖励
9+
2、当任务完成时,自动写入UserDefaults
10+
3、当一个或多个任务完成,触发解锁奖励时,NotificationCenter.default.post(name: .rewardUnlocked, object: reward),通知主app
11+
4、提供一个展示任务和奖励的view:CheckListView
612

13+
2025-12-06:发布 0.1 版
14+
2025-12-17:发布0.2版
715
使用方法:
816

917
1. 初始化 checkpoint 方法

0 commit comments

Comments
 (0)