mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Update files following swiftformat upgrade
This commit is contained in:
committed by
Stefan Ceriu
parent
fe189fcfed
commit
23062901c0
@@ -29,7 +29,9 @@ private struct BloomModifier: ViewModifier {
|
||||
|
||||
@State private var height = CGFloat.zero
|
||||
|
||||
private var endPointY: CGFloat { hasSearchBar ? 0.35 : 0.55 }
|
||||
private var endPointY: CGFloat {
|
||||
hasSearchBar ? 0.35 : 0.55
|
||||
}
|
||||
|
||||
func body(content: Content) -> some View {
|
||||
content
|
||||
@@ -102,7 +104,9 @@ private struct OldBloomModifier: ViewModifier {
|
||||
return bloom
|
||||
}
|
||||
|
||||
private var endPointY: CGFloat { hasSearchBar ? 0.5 : 0.7 }
|
||||
private var endPointY: CGFloat {
|
||||
hasSearchBar ? 0.5 : 0.7
|
||||
}
|
||||
|
||||
private var bloomGradient: some View {
|
||||
LinearGradient(gradient: .compound.subtle,
|
||||
@@ -117,9 +121,9 @@ private struct OldBloomModifier: ViewModifier {
|
||||
bloom.colorScheme == colorScheme && bloom.baseColor == .compound.gradientSubtleStop1
|
||||
}
|
||||
|
||||
// This is a class to avoid a "Modifying state during view update" warning when storing
|
||||
// the result on the same run-loop - we want to avoid dispatching that to the next loop as
|
||||
// that can result in further (unnecessary) renders being made.
|
||||
/// This is a class to avoid a "Modifying state during view update" warning when storing
|
||||
/// the result on the same run-loop - we want to avoid dispatching that to the next loop as
|
||||
/// that can result in further (unnecessary) renders being made.
|
||||
class Bloom {
|
||||
var image: UIImage?
|
||||
var colorScheme: ColorScheme?
|
||||
|
||||
Reference in New Issue
Block a user