Updates swiftformat

This commit is contained in:
Joe Diragi 2022-05-01 15:23:52 -04:00
parent b43abf1548
commit 0ca924c8f2
2 changed files with 566 additions and 563 deletions

View File

@ -151,8 +151,7 @@ open class UDPBroadcastConnection {
}
}
guard let endpoint = withUnsafePointer(to: &socketAddress,
{
guard let endpoint = withUnsafePointer(to: &socketAddress, {
self
.getEndpointFromSocketAddress(socketAddressPointer: UnsafeRawPointer($0)
.bindMemory(to: sockaddr.self, capacity: 1)) })

View File

@ -11,6 +11,7 @@ import SwiftUI
// TODO: Needs replacement/reworking
struct SmallMediaStreamSelectionView: View {
enum Layer: Hashable {
case subtitles
case audio
@ -67,9 +68,11 @@ struct SmallMediaStreamSelectionView: View {
.frame(height: 300)
VStack {
Spacer()
HStack {
// MARK: Subtitle Header
Button {
@ -217,19 +220,19 @@ struct SmallMediaStreamSelectionView: View {
}
}
if updateFocusedLayer == .subtitles, lastFocusedLayer == .subtitles {
if updateFocusedLayer == .subtitles && lastFocusedLayer == .subtitles {
// MARK: Subtitles
subtitleMenuView
} else if updateFocusedLayer == .audio, lastFocusedLayer == .audio {
} else if updateFocusedLayer == .audio && lastFocusedLayer == .audio {
// MARK: Audio
audioMenuView
} else if updateFocusedLayer == .playbackSpeed, lastFocusedLayer == .playbackSpeed {
} else if updateFocusedLayer == .playbackSpeed && lastFocusedLayer == .playbackSpeed {
// MARK: Playback Speed
playbackSpeedMenuView
} else if updateFocusedLayer == .chapters, lastFocusedLayer == .chapters {
} else if updateFocusedLayer == .chapters && lastFocusedLayer == .chapters {
// MARK: Chapters
chaptersMenuView
@ -333,6 +336,7 @@ struct SmallMediaStreamSelectionView: View {
.buttonStyle(CardButtonStyle())
VStack(alignment: .leading, spacing: 5) {
Text(viewModel.chapters[chapterIndex].name ?? L10n.noTitle)
.font(.subheadline)
.fontWeight(.semibold)