Skip to content

Commit

Permalink
fix preview. (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Livinglist committed May 10, 2023
1 parent f578cfe commit e24f5b4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
26 changes: 14 additions & 12 deletions Shared/Views/Widgets/SafariView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@ struct SafariView: View {
}

var body: some View {
ZStack(alignment: .top) {
if dragDismissable {
SafariBaseView(url: url)
// Workaround for increasing the size of draggable area.
Color
.white.opacity(0.001)
.frame(width: 150, height: 50)
}
.ignoresSafeArea(.all)
.if(!dragDismissable) { view in
view
.presentationDetents([.height(100), .large], selection: $presentationDetent)
.presentationBackgroundInteraction(.enabled)
.interactiveDismissDisabled()
.ignoresSafeArea(.all)
} else {
ZStack(alignment: .top) {
SafariBaseView(url: url)
// Workaround for increasing the size of draggable area.
Color
.white.opacity(0.001)
.frame(width: 150, height: 50)
}
.ignoresSafeArea(.all)
.presentationDetents([.height(100), .large], selection: $presentationDetent)
.presentationBackgroundInteraction(.enabled)
.interactiveDismissDisabled()
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions ZCombinator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "ZCombinator (iOS).entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = QMWX3X2NF7;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -1029,7 +1029,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "ZCombinator (iOS).entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = QMWX3X2NF7;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down

0 comments on commit e24f5b4

Please sign in to comment.