We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e5b1d8 commit 8e36c0eCopy full SHA for 8e36c0e
WordPress/Jetpack/Classes/NUX/New Landing Screen/Views/JetpackLandingScreenView.swift
@@ -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