-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feat [#30] 앱 잠금 기능 구현 #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오,..어렵네요...!
수고 많으셨습니다ㅏ..
@AppStorage(AppStorageKey.selectionApp.rawValue, store: UserDefaults(suiteName: APP_GROUP_NAME)) | ||
var selectionApps = FamilyActivitySelection() | ||
|
||
@StateObject var screenTimeVM = ScreenTimeViewModel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ ScreenTimeViewModel이 곧곧에서 굉장히 많이쓰이는데요..
싱글톤으로 선언하는게 나을지, 지금 처럼 StateObject를 여러곳에서 선언하는게 나을지
궁금합니다..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사실 이부분 진짜 고민이 많은데요,, 제 생각에는(짧게 생각했을 때) 싱글톤 사용하는 게 메모리 차원에서도, 관리 차원에도 좋을 것 같습니다!
이 부분 검토 한번 해보고 수정하겠습니다~
👾 작업 내용
Shield 관련 타겟과 DeviceMonitor 타겟을 추가하여 앱 잠금 기능을 구현했습니다.
네트워크 연결하면서 더 작업하겠습니다!
🚀 PR Point
🎆 드디어 모든 권한 받기 성공 🎉
ShieldActionExtension
에서 ShieldView에서 동작을 커스텀할 수 있습니다. 지금은 "연장하기" 버튼을 누르면 푸시를 요청하여 앱으로 진입하도록 유도했습니다.📸 스크린샷
✅ CheckList
🔗 Issue
Resolved #30