Skip to content

Commit

Permalink
[Release] v1.0.1 (#6)
Browse files Browse the repository at this point in the history
[Release] v1.0.1
  • Loading branch information
87kangsw authored Jan 19, 2021
2 parents 5cb9a48 + 4bda52d commit 8a0527d
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 32 deletions.
4 changes: 2 additions & 2 deletions ThenGenerator/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.0.1</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<string>3</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSMinimumSystemVersion</key>
Expand Down
63 changes: 35 additions & 28 deletions ThenGeneratorApp/Sources/Views/SideBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,45 @@ struct SideBar: View {
@EnvironmentObject private var homeState: HomeViewModel

var body: some View {
List(selection: $homeState.selectedComponents) {
VStack {

Section(header: SectionHeaderView(category: .common)) {
NavigationLink(
destination: CommonComponent(),
label: {
TabButton(title: "Common")
})
}

// Text
ComponentSection(components: homeState.components.filter { $0.category == .text }, category: .text)
UsageView()

// Scroll
ComponentSection(components: homeState.components.filter { $0.category == .scroll }, category: .scroll)
Divider()

// Control
ComponentSection(components: homeState.components.filter { $0.category == .control }, category: .control)

// Loading
ComponentSection(components: homeState.components.filter { $0.category == .loading }, category: .loading)

// Picker
ComponentSection(components: homeState.components.filter { $0.category == .picker }, category: .picker)

// Views
ComponentSection(components: homeState.components.filter { $0.category == .view }, category: .view)
List(selection: $homeState.selectedComponents) {

Section(header: SectionHeaderView(category: .common)) {
NavigationLink(
destination: CommonComponent(),
label: {
TabButton(title: "Common")
})
}

// Text
ComponentSection(components: homeState.components.filter { $0.category == .text }, category: .text)

// Scroll
ComponentSection(components: homeState.components.filter { $0.category == .scroll }, category: .scroll)

// Control
ComponentSection(components: homeState.components.filter { $0.category == .control }, category: .control)

// Loading
ComponentSection(components: homeState.components.filter { $0.category == .loading }, category: .loading)

// Picker
ComponentSection(components: homeState.components.filter { $0.category == .picker }, category: .picker)

// Views
ComponentSection(components: homeState.components.filter { $0.category == .view }, category: .view)
}
.environmentObject(homeState)
.animation(nil)
.listStyle(SidebarListStyle())
.frame(minWidth: 250, idealWidth: 250, maxWidth: 400, maxHeight: .infinity)
}
.environmentObject(homeState)
.animation(nil)
.listStyle(SidebarListStyle())
.frame(minWidth: 250, idealWidth: 250, maxWidth: 400, maxHeight: .infinity)
}
}

Expand Down
37 changes: 37 additions & 0 deletions ThenGeneratorApp/Sources/Views/UsageView.swift
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()
}
}
4 changes: 2 additions & 2 deletions ThenGeneratorApp/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.0.1</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<string>3</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
Expand Down

0 comments on commit 8a0527d

Please sign in to comment.