Skip to content

Commit

Permalink
Merge pull request #19 from teufelaudio/Xcode-16.1
Browse files Browse the repository at this point in the history
Fix xcode 16.1 build failures
  • Loading branch information
OguzYuuksel authored Oct 30, 2024
2 parents 603c4c4 + 8390978 commit 7ea1f01
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/CombineRextensions/Button+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import SwiftRex
import SwiftUI

extension Button where Label == Text {
@MainActor
public init<S: StoreType>(store: S,
verbatim: (S) -> String,
action: @escaping @autoclosure () -> S.ActionType,
Expand All @@ -27,6 +28,7 @@ extension Button where Label == Text {
}

extension Button where Label == Text {
@MainActor
public init<S: StoreType>(store: S,
localizableKey: (S) -> String,
action: @escaping @autoclosure () -> S.ActionType,
Expand All @@ -42,6 +44,7 @@ extension Button where Label == Text {
}

extension Button where Label == Text {
@MainActor
public init<ActionType, StateType>(localizedString: KeyPath<StateType, String>,
viewModel: ObservableViewModel<ActionType, StateType>,
action: @escaping @autoclosure () -> ActionType,
Expand All @@ -57,6 +60,7 @@ extension Button where Label == Text {
}

extension Button {
@MainActor
public init<S: StoreType>(store: S,
action: @escaping @autoclosure () -> S.ActionType,
file: String = #file,
Expand Down
2 changes: 2 additions & 0 deletions Sources/CombineRextensions/NavigationLink+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import SwiftRex
import SwiftUI

extension NavigationLink {
@MainActor
public init<Action, State, RowTag: Hashable>(
destination: Destination,
rowTag: RowTag,
Expand Down Expand Up @@ -51,6 +52,7 @@ public protocol PoppableAction {

// MARK: - NavigationTree Support
extension NavigationLink {
@MainActor
public init?<Action: PoppableAction, State, ViewProducerContext: Hashable>(
store: ObservableViewModel<Action, State>,
path: KeyPath<State, ViewProducerContext?>,
Expand Down
2 changes: 2 additions & 0 deletions Sources/CombineRextensions/Picker+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ extension Picker where Label == Text {
}

/// Allows to create own views for each option. User is responsible for setting the tag.
@MainActor
public init<Action, State, V: View>(
localizedString: String,
viewModel: ObservableViewModel<Action, State>,
Expand Down Expand Up @@ -80,6 +81,7 @@ extension Picker where Label == Text {
}

/// Creates simple text views for the picker options.
@MainActor
public init<Action, State>(
localizedString: String,
viewModel: ObservableViewModel<Action, State>,
Expand Down
3 changes: 3 additions & 0 deletions Sources/CombineRextensions/Toggle+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import SwiftRex
import SwiftUI

extension Toggle where Label: View {
@MainActor
public init<Action, State>(viewModel: ObservableViewModel<Action, State>,
state: KeyPath<State, Bool>,
file: String = #file,
Expand All @@ -24,6 +25,7 @@ extension Toggle where Label: View {
}

extension Toggle where Label == Text {
@MainActor
public init<Action, State>(
_ titleKey: LocalizedStringKey,
viewModel: ObservableViewModel<Action, State>,
Expand All @@ -36,6 +38,7 @@ extension Toggle where Label == Text {
self.init(titleKey, isOn: .store(viewModel, state: state, file: file, function: function, line: line, info: info, onChange: onToggle))
}

@MainActor
public init<Action, State, StringType: StringProtocol>(
_ title: StringType,
viewModel: ObservableViewModel<Action, State>,
Expand Down

0 comments on commit 7ea1f01

Please sign in to comment.