File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Libraries/SWUtils/Sources/SWUtils/Extensions Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11import Foundation
22
3- extension Date : @ retroactive RawRepresentable {
3+ extension Date : RawRepresentable {
44 public var rawValue : String {
55 String ( timeIntervalSinceReferenceDate)
66 }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ struct PickedImagesGrid: View {
5353private 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 ,
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments