SwiftUI/Buttonに色を付ける時はforegroundColorでなく、accentColorを使う
#SwiftUI
モチベーション
仕事で知ったので書いておく
/icons/hr.icon
accentColorはユーザーインターフェースの要素に付与する
https://developer.apple.com/documentation/familycontrols/familyactivityiconview/accentcolor(_:)
Use accentColor(_:) when you want to apply a broad theme color to your app’s user interface.
Buttonとかに色をつける時はaccentColorを使う
foregroundColorはそれ以外かな
iOS 16以上の場合はtintを使う
https://developer.apple.com/documentation/swiftui/view/tint(_:)-93mfq