Просмотр исходного кода

fix basal view escaping the rounded rectangle

polscm32 2 лет назад
Родитель
Сommit
089de708d1
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

+ 3 - 2
FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

@@ -708,11 +708,12 @@ extension Home {
 
                     RoundedRectangle(cornerRadius: 15)
                         .fill(colourChart)
-                        .shadow(radius: 3)
                         .overlay(mainChart)
+                        .clipShape(RoundedRectangle(cornerRadius: 15))
+                        .shadow(radius: 3)
                         .padding([.leading, .trailing], 10)
                         .padding(.top, 5)
-                        .frame(height: UIScreen.main.bounds.height / 2.2) // with 2 chart was still too big
+                        .frame(maxHeight: UIScreen.main.bounds.height / 2.2)
 
                     pickerPanel(geo)
                         .padding(.top, 13)