-
Notifications
You must be signed in to change notification settings - Fork 411
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
Showing
6 changed files
with
75 additions
and
30 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
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,25 @@ | ||
// | ||
// SettingSidebarView.swift | ||
// SwiftPamphletApp | ||
// | ||
// Created by Ming Dai on 2024/11/23. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct SettingSidebarView: View { | ||
@Binding var selectedItem: String? | ||
var body: some View { | ||
List(selection: $selectedItem) { | ||
item(title: "Github Token 设置", icon: "gearshape") | ||
.tag("Github Token 设置") | ||
item(title: "自定义标签", icon: "tag") | ||
.tag("自定义标签") | ||
} | ||
} | ||
|
||
@ViewBuilder func item(title:String, icon:String) -> some View { | ||
Label(title, systemImage: icon) | ||
} | ||
} | ||
|
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