I am using this solution for my current iPhone and iPad SwiftUI app project on Xcode 16.2:
Open the app asset catalog.
Select the Editor > Add New Asset > Color Set menu item to add a new color set to the asset catalog.
In the app’s Build Settings, set the Global Accent Color Name to your color set’s name.