Additional gallery options

This commit is contained in:
Ali
2021-10-08 23:03:22 +04:00
parent 90650e71c7
commit a7140ac206
15 changed files with 384 additions and 123 deletions

View File

@@ -52,7 +52,7 @@ final class BlurredRoundedRectangle: Component {
return View()
}
func update(view: View, availableSize: CGSize, transition: Transition) -> CGSize {
func update(view: View, availableSize: CGSize, environment: Environment<Empty>, transition: Transition) -> CGSize {
return view.update(component: self, availableSize: availableSize, transition: transition)
}
}
@@ -166,7 +166,7 @@ final class RadialProgressComponent: Component {
return View()
}
func update(view: View, availableSize: CGSize, transition: Transition) -> CGSize {
func update(view: View, availableSize: CGSize, environment: Environment<Empty>, transition: Transition) -> CGSize {
return view.update(component: self, availableSize: availableSize, transition: transition)
}
}
@@ -308,7 +308,7 @@ final class CheckComponent: Component {
return View()
}
func update(view: View, availableSize: CGSize, transition: Transition) -> CGSize {
func update(view: View, availableSize: CGSize, environment: Environment<Empty>, transition: Transition) -> CGSize {
return view.update(component: self, availableSize: availableSize, transition: transition)
}
}
@@ -558,7 +558,7 @@ final class AvatarComponent: Component {
return View()
}
func update(view: View, availableSize: CGSize, transition: Transition) -> CGSize {
func update(view: View, availableSize: CGSize, environment: Environment<Empty>, transition: Transition) -> CGSize {
return view.update(component: self, availableSize: availableSize, transition: transition)
}
}
@@ -656,7 +656,7 @@ private final class WallpaperBlurComponent: Component {
return View()
}
func update(view: View, availableSize: CGSize, transition: Transition) -> CGSize {
func update(view: View, availableSize: CGSize, environment: Environment<Empty>, transition: Transition) -> CGSize {
return view.update(component: self, availableSize: availableSize, transition: transition)
}
}
@@ -979,7 +979,7 @@ final class OverscrollContentsComponent: Component {
return View()
}
func update(view: View, availableSize: CGSize, transition: Transition) -> CGSize {
func update(view: View, availableSize: CGSize, environment: Environment<Empty>, transition: Transition) -> CGSize {
return view.update(component: self, availableSize: availableSize, transition: transition)
}
}