Skip to content

Commit

Permalink
updating link to work properly based on version
Browse files Browse the repository at this point in the history
  • Loading branch information
sjgutta committed Jan 9, 2021
1 parent 3136076 commit 123a9b8
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ struct EventView: View {
Image(systemName: "link.circle.fill").foregroundColor(.blue)
}.padding(.leading, 5)
} else {
// Fallback on earlier versions
Button(action: {
NSWorkspace.shared.open(URL(string: espn_url)!)
}) {
Text("").font(.custom("link", size: 20))
.foregroundColor(.blue).padding(2)

}.buttonStyle(PlainButtonStyle())
.padding(.leading, 5)
}
Text(self.event.status_string)
Spacer()
Expand Down

0 comments on commit 123a9b8

Please sign in to comment.