-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Release] v1.0.1
- Loading branch information
Showing
4 changed files
with
76 additions
and
32 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,37 @@ | ||
// | ||
// UsageView.swift | ||
// ThenGeneratorApp | ||
// | ||
// Created by Kanz on 2021/01/18. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct UsageView: View { | ||
var body: some View { | ||
Button(action: { | ||
self.openGitHub() | ||
}, label: { | ||
HStack { | ||
Text("How to use?") | ||
|
||
Spacer() | ||
Image(systemName: "questionmark.circle.fill") | ||
} | ||
}) | ||
.padding(.horizontal, 12.0) | ||
.padding(.vertical, 8.0) | ||
.buttonStyle(PlainButtonStyle()) | ||
} | ||
|
||
private func openGitHub() { | ||
guard let url = URL(string: "https://github.com/87kangsw/ThenGenerator") else { return } | ||
NSWorkspace.shared.open(url) | ||
} | ||
} | ||
|
||
struct UsageView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
UsageView() | ||
} | ||
} |
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