Skip to content

Commit 8e36c0e

Browse files
author
Giorgio Ruscigno
committed
Add JetpackLandingScreenView, the entry point view for the new Jetpack prologue screen
1 parent 4e5b1d8 commit 8e36c0e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
import SwiftUI
3+
4+
struct JetpackLandingScreenView: View {
5+
6+
let viewModel: JetpackPromptsViewModel
7+
8+
var body: some View {
9+
GeometryReader { proxy in
10+
makeJetpackPromptsView(size: CGSize(width: proxy.size.width - JetpackPromptView.totalHorizontalPadding,
11+
height: proxy.size.height))
12+
}
13+
}
14+
15+
private func makeJetpackPromptsView(size: CGSize) -> some View {
16+
viewModel.configuration = JetpackPromptsConfiguration(size: size)
17+
return JetpackPromptsView(viewModel: viewModel)
18+
}
19+
}

0 commit comments

Comments
 (0)