Skip to content

Commit

Permalink
[fix] doc issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhenry committed Jul 20, 2023
1 parent e318b9e commit 316a1e9
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/CombineCommunity/CombineExt", from: "1.8.1"),
.package(url: "https://github.com/CombineCommunity/CombineCocoa", from: "0.4.1"),
.package(url: "https://github.com/michaelhenry/CombineCocoa", from: "1.0.1"),
.package(url: "https://github.com/michaelhenry/Prettier.swift", from: "1.1.1"),
.package(url: "https://github.com/raspu/Highlightr", from: "2.1.2"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
Expand Down
12 changes: 7 additions & 5 deletions Sources/XConfigs/DataSources/TableViewDataSource.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import UIKit
#if canImport(UIKit)
import UIKit

final class TableViewDataSource<Section: Hashable, Item: Hashable>: UITableViewDiffableDataSource<Section, Item> {
override func tableView(_: UITableView, titleForHeaderInSection section: Int) -> String? {
(snapshot().sectionIdentifiers[section] as? CustomStringConvertible)?.description
final class TableViewDataSource<Section: Hashable, Item: Hashable>: UITableViewDiffableDataSource<Section, Item> {
override func tableView(_: UITableView, titleForHeaderInSection section: Int) -> String? {
(snapshot().sectionIdentifiers[section] as? CustomStringConvertible)?.description
}
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/XConfigs/ViewModels/InputValueViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import CombineExt
import Foundation
import Prettier_swift

@available(macOS 10.15, *)
@available(iOS 13.0, *)
struct InputValueViewModel: ViewModelType {
struct Input {
let textPublisher: AnyPublisher<String, Never>
Expand Down
2 changes: 2 additions & 0 deletions Sources/XConfigs/ViewModels/OptionViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import Combine
import CombineExt
import Foundation

@available(macOS 10.15, *)
@available(iOS 13.0, *)
struct OptionViewModel: ViewModelType {
typealias Section = String?

Expand Down
4 changes: 4 additions & 0 deletions Sources/XConfigs/ViewModels/XConfigsViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import Combine
import CombineExt
import Foundation

@available(macOS 10.15, *)
@available(iOS 13.0, *)
struct XConfigsViewModel: ViewModelType {
enum Section: Hashable {
case main
Expand Down Expand Up @@ -150,6 +152,8 @@ struct XConfigsViewModel: ViewModelType {
}
}

@available(macOS 10.15, *)
@available(iOS 13.0, *)
extension XConfigsViewModel.Section: CustomStringConvertible {
var description: String {
switch self {
Expand Down
1 change: 0 additions & 1 deletion Sources/XConfigs/XConfigs.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#if canImport(UIKit)
import UIKit
#endif
import Combine
import Foundation

internal var defaultConfigUseCase: XConfigUseCase!
Expand Down

0 comments on commit 316a1e9

Please sign in to comment.