Skip to content

Commit

Permalink
Merge pull request #568 from yimajo/add_attribute_retroactive
Browse files Browse the repository at this point in the history
Add (at)retroactive to the extension to address the Xcode 16 warning.
  • Loading branch information
MrSmart00 authored Aug 17, 2024
2 parents a639613 + 2f80bfc commit a6f1fbf
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
8 changes: 7 additions & 1 deletion app-ios/Sources/FavoriteFeature/FavoriteView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@ public struct FavoriteView: View {
}
}

extension DroidKaigi2024Day: Selectable {
#if hasFeature(RetroactiveAttribute)
extension DroidKaigi2024Day: @retroactive Selectable {}
#else
extension DroidKaigi2024Day: Selectable {}
#endif

extension DroidKaigi2024Day {
public var id: Self {
self
}
Expand Down
32 changes: 28 additions & 4 deletions app-ios/Sources/SearchFeature/SearchView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,13 @@ public struct SearchView: View {
}
}

extension DroidKaigi2024Day: Selectable {
#if hasFeature(RetroactiveAttribute)
extension DroidKaigi2024Day: @retroactive Selectable {}
#else
extension DroidKaigi2024Day: Selectable {}
#endif

extension DroidKaigi2024Day {
public var id: Self {
self
}
Expand All @@ -167,7 +173,13 @@ extension DroidKaigi2024Day: Selectable {
}
}

extension TimetableCategory: Selectable {
#if hasFeature(RetroactiveAttribute)
extension TimetableCategory: @retroactive Selectable {}
#else
extension TimetableCategory: Selectable {}
#endif

extension TimetableCategory {
public var caseTitle: String {
title.currentLangTitle
}
Expand All @@ -178,7 +190,13 @@ extension TimetableCategory: Selectable {
}
}

extension TimetableSessionType: Selectable {
#if hasFeature(RetroactiveAttribute)
extension TimetableSessionType: @retroactive Selectable {}
#else
extension TimetableSessionType: Selectable {}
#endif

extension TimetableSessionType {
public var id: Self {
self
}
Expand All @@ -188,7 +206,13 @@ extension TimetableSessionType: Selectable {
}
}

extension Lang: Selectable {
#if hasFeature(RetroactiveAttribute)
extension Lang: @retroactive Selectable {}
#else
extension Lang: Selectable {}
#endif

extension Lang {
public var id: Self {
self
}
Expand Down

0 comments on commit a6f1fbf

Please sign in to comment.