fix for updated swiftformat
This commit is contained in:
parent
b2a39d934d
commit
eb71e8b8d0
|
@ -40,9 +40,10 @@
|
|||
blankLinesAtStartOfScope,\
|
||||
andOperator, \
|
||||
redundantFileprivate, \
|
||||
redundantSelf
|
||||
redundantSelf, \
|
||||
redundantClosure, \
|
||||
redundantType
|
||||
|
||||
--exclude Pods
|
||||
|
||||
--header "\nSwiftfin is subject to the terms of the Mozilla Public\nLicense, v2.0. If a copy of the MPL was not distributed with this\nfile, you can obtain one at https://mozilla.org/MPL/2.0/.\n\nCopyright (c) {year} Jellyfin & Jellyfin Contributors\n"
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ struct SearchBar: View {
|
|||
#if os(iOS)
|
||||
.background(Color(.systemGray6))
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
.cornerRadius(8)
|
||||
if !text.isEmpty {
|
||||
Button(action: {
|
||||
self.text = ""
|
||||
|
|
|
@ -67,8 +67,8 @@ struct LandscapeItemElement: View {
|
|||
.fill(LinearGradient(gradient: Gradient(colors: [.black, .clear]),
|
||||
startPoint: .bottom,
|
||||
endPoint: .top))
|
||||
.frame(width: 445, height: 90)
|
||||
.mask(CutOffShadow())
|
||||
.frame(width: 445, height: 90)
|
||||
.mask(CutOffShadow())
|
||||
VStack(alignment: .leading) {
|
||||
Text("CONTINUE • \(item.getItemProgressString() ?? "")")
|
||||
.font(.caption)
|
||||
|
|
|
@ -48,9 +48,9 @@ struct LibraryListView: View {
|
|||
.frame(minWidth: 100, maxWidth: .infinity)
|
||||
.frame(height: 100)
|
||||
}
|
||||
.cornerRadius(10)
|
||||
.shadow(radius: 5)
|
||||
.padding(.bottom, 5)
|
||||
.cornerRadius(10)
|
||||
.shadow(radius: 5)
|
||||
.padding(.bottom, 5)
|
||||
}
|
||||
|
||||
ForEach(viewModel.libraries.filter { $0.collectionType != "boxsets" }, id: \.id) { library in
|
||||
|
@ -75,9 +75,9 @@ struct LibraryListView: View {
|
|||
.frame(minWidth: 100, maxWidth: .infinity)
|
||||
.frame(height: 100)
|
||||
}
|
||||
.cornerRadius(10)
|
||||
.shadow(radius: 5)
|
||||
.padding(.bottom, 5)
|
||||
.cornerRadius(10)
|
||||
.shadow(radius: 5)
|
||||
.padding(.bottom, 5)
|
||||
}
|
||||
} else {
|
||||
Button {
|
||||
|
@ -99,9 +99,9 @@ struct LibraryListView: View {
|
|||
.frame(minWidth: 100, maxWidth: .infinity)
|
||||
.frame(height: 100)
|
||||
}
|
||||
.cornerRadius(10)
|
||||
.shadow(radius: 5)
|
||||
.padding(.bottom, 5)
|
||||
.cornerRadius(10)
|
||||
.shadow(radius: 5)
|
||||
.padding(.bottom, 5)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -344,7 +344,7 @@ struct VLCPlayerOverlayView: View {
|
|||
thumbSize: CGSize.Circle(radius: viewModel.sliderIsScrubbing ? 20 : 15),
|
||||
thumbInteractiveSize: CGSize.Circle(radius: 40),
|
||||
options: .defaultOptions))
|
||||
.frame(maxHeight: 50)
|
||||
.frame(maxHeight: 50)
|
||||
|
||||
Text(viewModel.rightLabelText)
|
||||
.font(.system(size: 18, weight: .semibold, design: .default))
|
||||
|
|
|
@ -458,9 +458,9 @@ private struct InnerShadow: ViewModifier {
|
|||
.overlay(LinearGradient(gradient: Gradient(colors: self.colors), startPoint: .top, endPoint: .bottom)
|
||||
.frame(height: self.radius * self.minSide(geo)),
|
||||
alignment: .top)
|
||||
.overlay(LinearGradient(gradient: Gradient(colors: self.colors), startPoint: .bottom, endPoint: .top)
|
||||
.frame(height: self.radius * self.minSide(geo)),
|
||||
alignment: .bottom)
|
||||
.overlay(LinearGradient(gradient: Gradient(colors: self.colors), startPoint: .bottom, endPoint: .top)
|
||||
.frame(height: self.radius * self.minSide(geo)),
|
||||
alignment: .bottom)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue