Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Advanced Audio options use MVVM #673

Merged
merged 3 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Core/QueuePlayer/Runs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
public enum Runs: Equatable, Sendable {

public enum Runs: Hashable, Sendable {
case one
case two
case three
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,22 @@
//

import ReciterListFeature
import UIKit
import SwiftUI

@MainActor
public struct AdvancedAudioOptionsBuilder {
// MARK: Lifecycle

public init() {
}

// MARK: Public

public func build(withListener listener: AdvancedAudioOptionsListener, options: AdvancedAudioOptions) -> UIViewController {
let viewModel = AdvancedAudioOptionsInteractor(options: options)
viewModel.listener = listener
let viewController = AdvancedAudioOptionsNavigationController(
viewModel: viewModel,
let viewModel = AdvancedAudioOptionsViewModel(
options: options,
reciterListBuilder: ReciterListBuilder()
)
viewModel.listener = listener

let view = AdvancedAudioOptionsView(viewModel: viewModel)
let viewController = UIHostingController(rootView: view)
return viewController
}
}

This file was deleted.

Loading
Loading