-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Velislava Yanchina
committed
Dec 1, 2018
1 parent
0a3625d
commit bf09b02
Showing
4 changed files
with
70 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// ExternalLinks.swift | ||
// Comment Spell Checker | ||
// | ||
// Created by Velislava Yanchina on 1/12/18. | ||
// Copyright © 2018 Velislava Yanchina. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import AppKit | ||
|
||
enum ExternalLinks { | ||
|
||
static func openTwitterProfile() { | ||
open(url: "https://twitter.com/vel_is_lava") | ||
} | ||
|
||
static func openGitHubPage() { | ||
open(url: "https://github.com/velyan/Comment-Spell-Checker") | ||
} | ||
|
||
private static func open(url urlString: String) { | ||
if let url = URL(string: urlString) { | ||
NSWorkspace.shared.open(url) | ||
} else { | ||
print("Unable to construct url from string: \(urlString)") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters