fix: build error on Mac

This commit is contained in:
Yusuke Hosonuma
2020-08-18 11:55:59 +09:00
parent 6318758fb1
commit 89fc08061a
7 changed files with 20 additions and 13 deletions
@@ -34,9 +34,12 @@ struct BoardContainerView: View {
// MARK: Views
var body: some View {
#if os(iOS)
AppLogger.imageLoadBug.notice("BoardContainerView.body: \(setting.backgroundImage == nil ? "nil" : "found!", privacy: .public)")
#endif
return GeometryReader { geometry in
ZStack {
#if os(iOS)
if let image = setting.backgroundImage {
Image(image: image)
.resizable()
@@ -44,6 +47,7 @@ struct BoardContainerView: View {
.opacity(0.7)
.frame(width: geometry.size.width, height: geometry.size.height)
}
#endif
BoardRenderImage(
board: viewModel.board.board,
cellRenderSize: cellRenderSize,