Skip to content

Commit a1a714b

Browse files
Update CardView to use foregroundStyle instead of deprecated foregroundColor (#3575)
1 parent 3395a96 commit a1a714b

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/02-ListsOfSyncUps/ListsOfSyncUps-02-code-0006.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct CardView: View {
2323
.font(.caption)
2424
}
2525
.padding()
26-
.foregroundColor(syncUp.theme.accentColor)
26+
.foregroundStyle(syncUp.theme.accentColor)
2727
}
2828
}
2929

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/02-ListsOfSyncUps/ListsOfSyncUps-02-code-0007.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct CardView: View {
3030
.font(.caption)
3131
}
3232
.padding()
33-
.foregroundColor(syncUp.theme.accentColor)
33+
.foregroundStyle(syncUp.theme.accentColor)
3434
}
3535
}
3636

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/02-ListsOfSyncUps/ListsOfSyncUps-02-code-0008.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct CardView: View {
5151
.font(.caption)
5252
}
5353
.padding()
54-
.foregroundColor(syncUp.theme.accentColor)
54+
.foregroundStyle(syncUp.theme.accentColor)
5555
}
5656
}
5757

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/02-ListsOfSyncUps/ListsOfSyncUps-02-code-0009.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct CardView: View {
5151
.font(.caption)
5252
}
5353
.padding()
54-
.foregroundColor(syncUp.theme.accentColor)
54+
.foregroundStyle(syncUp.theme.accentColor)
5555
}
5656
}
5757

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/02-ListsOfSyncUps/ListsOfSyncUps-03-code-0001-previous.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct CardView: View {
5151
.font(.caption)
5252
}
5353
.padding()
54-
.foregroundColor(syncUp.theme.accentColor)
54+
.foregroundStyle(syncUp.theme.accentColor)
5555
}
5656
}
5757

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/02-ListsOfSyncUps/ListsOfSyncUps-03-code-0001.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct CardView: View {
5151
.font(.caption)
5252
}
5353
.padding()
54-
.foregroundColor(syncUp.theme.accentColor)
54+
.foregroundStyle(syncUp.theme.accentColor)
5555
}
5656
}
5757

0 commit comments

Comments
 (0)