Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#94] 사용자의 애플 뮤직 구독 관리 #104

Merged
merged 5 commits into from
Jun 13, 2024

Conversation

dbqls200
Copy link
Collaborator

📝 작업 내용

사용자의 애플 뮤직 구독 상태를 관리하는 manager 생성
구독하지 않은 사용자의 경우, 온보딩 이후 or 홈 화면 진입 시에 애플에서 제공하는 구독 권유 sheet가 뜬다.

스크린샷

💬 리뷰 요구사항(선택)

출시 전 급하게 하느라, 시점이나 구독 매니저 위치 등 마음에 들지 않는 부분이 있어 추후 리팩 할 예정입니닷 ..🫨
구독 권유 뷰를 어느 시점마다 보여줘야 할 지 같이 고민해주새우 🦐 🍤

- 사용자의 애플 뮤직 구독 상태를 관리하는 manager 생성
- 구독하지 않은 사용자의 경우,
- 온보딩 이후 or 홈 화면 진입 시에 애플에서 제공하는 구독 권유 sheet가 뜬다.
@dbqls200 dbqls200 requested a review from zaehorang June 12, 2024 04:43
@dbqls200 dbqls200 linked an issue Jun 12, 2024 that may be closed by this pull request
2 tasks
@dbqls200 dbqls200 self-assigned this Jun 12, 2024
import MusicKit
import SwiftUI

class SubscriptionManager: ObservableObject {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final 키워드를 안 붙이신 이유가 있을까요?

class SubscriptionManager: ObservableObject {
static let shared = SubscriptionManager()

@State var musicSubscription: MusicSubscription?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

State 변수로 선언하신 이유가 있을까요?

@@ -14,8 +14,10 @@ struct HomeView: View {
@StateObject private var musicPersonalRecommendationModel = MusicPersonalRecommendationModel()
// 지난 선곡 데이터를 위한 모델
@StateObject private var selectedMusicDataModel = TrackIDConverter()
@ObservedObject var subscriptionManager = SubscriptionManager.shared
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ StateObject로 선언하는 건 어떨까요?

}
.task {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SubscriptionManager에서 메서드로 작성한 기능과 같은 거 같은데 없어도 되는 거 같은데..
맞나용? 🐯

dbqls200 added 3 commits June 13, 2024 19:42
- 사용자의 애플 뮤직 구독 상태 관리
- 현재 다크모드 배경 문제로 라이트모드만 사용 가능하도록 설정
Copy link
Collaborator

@zaehorang zaehorang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고링고링링

@zaehorang zaehorang merged commit d0ab486 into Develop Jun 13, 2024
@zaehorang zaehorang deleted the 94-offer-subscription-view branch June 13, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apple music 구독 안 한 사람을 위한 View
2 participants