Skip to content

Commit a0a19e3

Browse files
committed
Правки для Xcode 15* (у Антона старый Xcode)
1 parent 7b84bf9 commit a0a19e3

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

SwiftUI-WorkoutApp/Libraries/SWUtils/Sources/SWUtils/Extensions/Date+rawValue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
extension Date: @retroactive RawRepresentable {
3+
extension Date: RawRepresentable {
44
public var rawValue: String {
55
String(timeIntervalSinceReferenceDate)
66
}

SwiftUI-WorkoutApp/Screens/Common/ImagePicker/ModernPickedImagesGrid.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private extension ModernPickedImagesGrid {
132132
let images: [UIImage] = Array(1 ... 3).map {
133133
.init(systemName: "\($0).circle.fill")!
134134
}
135-
ModernPickedImagesGrid(
135+
return ModernPickedImagesGrid(
136136
images: .constant(images),
137137
showImagePicker: .constant(false),
138138
selectionLimit: 7
@@ -144,7 +144,7 @@ private extension ModernPickedImagesGrid {
144144
let images: [UIImage] = Array(1 ... 10).map {
145145
.init(systemName: "\($0).circle.fill")!
146146
}
147-
ModernPickedImagesGrid(
147+
return ModernPickedImagesGrid(
148148
images: .constant(images),
149149
showImagePicker: .constant(false),
150150
selectionLimit: 0

SwiftUI-WorkoutApp/Screens/Common/ImagePicker/PickedImagesGrid.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ struct PickedImagesGrid: View {
5353
private extension PickedImagesGrid {
5454
var header: String { ImagePickerViews.makeHeaderString(for: images.count) }
5555

56+
@MainActor
5657
var oldContentView: some View {
5758
SectionView(header: .init(header), mode: .regular) {
5859
VStack(alignment: .leading, spacing: 12) {
@@ -107,7 +108,7 @@ private extension PickedImagesGrid {
107108
let images: [UIImage] = Array(1 ... 3).map {
108109
.init(systemName: "\($0).circle.fill")!
109110
}
110-
PickedImagesGrid(
111+
return PickedImagesGrid(
111112
images: .constant(images),
112113
showImagePicker: .constant(false),
113114
selectionLimit: 7,
@@ -119,7 +120,7 @@ private extension PickedImagesGrid {
119120
let images: [UIImage] = Array(1 ... 10).map {
120121
.init(systemName: "\($0).circle.fill")!
121122
}
122-
PickedImagesGrid(
123+
return PickedImagesGrid(
123124
images: .constant(images),
124125
showImagePicker: .constant(false),
125126
selectionLimit: 0,

SwiftUI-WorkoutApp/Screens/Events/EKEventEditViewControllerRepresentable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct EKEventEditViewControllerRepresentable: UIViewControllerRepresentable {
3131

3232
func makeCoordinator() -> Coordinator { .init(parent: self) }
3333

34-
final class Coordinator: NSObject, @preconcurrency EKEventEditViewDelegate {
34+
final class Coordinator: NSObject, EKEventEditViewDelegate {
3535
private let parent: EKEventEditViewControllerRepresentable
3636

3737
init(parent: EKEventEditViewControllerRepresentable) {

0 commit comments

Comments
 (0)