Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ public final class PermissionManager {

/// Check current push notification permission status from system
func checkPushPermissionStatus() async {
if ProcessInfo.processInfo.isiOSAppOnMac {
currentPushStatus = .authorized
return
}

let status = await PushNotification.authorizationStatus
currentPushStatus = status
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ struct FeaturesView: View {
}
.containerRelativeFrame([.horizontal, .vertical])
.overlay(alignment: .topTrailing) {
// Skip button - acts like a toolbar
OnboardingSkipButton(
label: "Pular novidades",
hint: "Vá direto para a tela de permissões"
Expand All @@ -72,7 +71,6 @@ struct FeaturesView: View {
.animation(.easeInOut(duration: 0.25), value: isLastPage)
.allowsHitTesting(!isLastPage)
}
// .background(OnboardingBackground())
.onAppear { animateIn = true }
.onDisappear { animateIn = false }
.trackScreen(AnalyticsConstants.Screen.onboardingFeatures.name, analytics: coordinator.analytics)
Expand Down Expand Up @@ -111,7 +109,6 @@ struct FeaturesView: View {

private var landscapeLayout: some View {
HStack(spacing: 20) {
// Left side - Logo and title
VStack(spacing: 8) {
logoView
Text("Novidades no app")
Expand All @@ -122,7 +119,6 @@ struct FeaturesView: View {
}
.frame(width: 120)

// Right side - Cards and footer
VStack(spacing: 0) {
Spacer()

Expand All @@ -131,7 +127,6 @@ struct FeaturesView: View {

Spacer()

// Footer at bottom: dots centered, or dots left + button right
HStack {
if isLastPage {
pageIndicator
Expand Down Expand Up @@ -186,7 +181,7 @@ struct FeaturesView: View {
if isIPad {
return 260
}
return 300
return 320
}

private func pageView(cards: [OnBoardingFeature]) -> some View {
Expand Down
Loading