-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix iOS 14.2 #7
Fix iOS 14.2 #7
Conversation
HStack { | ||
ChildView(counter: $counter) | ||
.frame(width: .infinity) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要なHStack削除
@@ -8,7 +8,7 @@ final class DataSource: ObservableObject { | |||
} | |||
|
|||
struct ParentView: View { | |||
@StateObject var dataSource = DataSource() | |||
@StateObject private var dataSource = DataSource() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@StateObject
のプロパティにprivate追加
GeometryReader { geometry in | ||
FilterBannerView(isShowBanner: $viewModel.isShowBanner, applyingFilter: $viewModel.applyingFilter, bottomSafeAreaInsets: geometry.safeAreaInsets.bottom) | ||
.edgesIgnoringSafeArea(.bottom) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iOS 14.2からbottomSafeAreaInsets
は親ビューから渡さないといけなくなったよう
@@ -11,7 +11,7 @@ import SafariServices | |||
|
|||
struct SafariView: UIViewControllerRepresentable { | |||
typealias UIViewControllerType = SFSafariViewController | |||
var url: URL | |||
let url: URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
変更しないのでletにする
iOS 14.2からFilter SampleのバナーがSafe Areaをはみ出てしまっていたので修正
その他不具合修正
FilterBannerView