Skip to content

Commit

Permalink
Make Advanced Audio options use MVVM
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamede1945 committed Oct 5, 2024
1 parent 8075902 commit 63089a1
Show file tree
Hide file tree
Showing 19 changed files with 514 additions and 746 deletions.
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

0 comments on commit 63089a1

Please sign in to comment.