0

I can't figure out how to access the NSRefreshTemplate image for a SwiftUI button. Is there some way to access system images ?

Button(action: {
  print("Do something...")
}) {
    Image("NSRefreshTemplate")
}.buttonStyle(BorderlessButtonStyle())

Where do SF Symbols fit with these system images and how does one access these SF Symbols?

Duncan Groenewald
  • 8,496
  • 6
  • 41
  • 76

1 Answers1

0

The answer is as shown below

Button(action: {
  print("Do something...")
}) {
   Image(nsImage: NSImage(named: NSImage.refreshTemplateName)!)
}.buttonStyle(BorderlessButtonStyle())
Duncan Groenewald
  • 8,496
  • 6
  • 41
  • 76