-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #179 from makinosp/develop
update: bump up to 0.9.6
- Loading branch information
Showing
12 changed files
with
140 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// FavoriteType+LocalizedStringKey.swift | ||
// Harmonie | ||
// | ||
// Created by makinosp on 2024/10/30. | ||
// | ||
|
||
import VRCKit | ||
import SwiftUICore | ||
|
||
extension FavoriteType { | ||
var localizedStringKey: LocalizedStringKey { | ||
switch self { | ||
case .world: | ||
LocalizedStringKey("World") | ||
case .avatar: | ||
LocalizedStringKey("Avatar") | ||
case .friend: | ||
LocalizedStringKey("Friend") | ||
} | ||
} | ||
} |
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
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 @@ | ||
// | ||
// PrivateLocationView.swift | ||
// Harmonie | ||
// | ||
// Created by makinosp on 2024/10/30. | ||
// | ||
|
||
import MemberwiseInit | ||
import SwiftUI | ||
import VRCKit | ||
|
||
@MemberwiseInit | ||
struct PrivateLocationView: View { | ||
@InitWrapper(.internal, label: "_", type: Binding<SegmentIdSelection?>) | ||
@Binding private var selection: SegmentIdSelection? | ||
@Init(.internal) private let friends: [Friend] | ||
|
||
var body: some View { | ||
List(selection: $selection) { | ||
Section("Friends") { | ||
ForEach(friends) { friend in | ||
NavigationLabel { | ||
Label { | ||
Text(friend.displayName) | ||
} icon: { | ||
UserIcon(user: friend, size: Constants.IconSize.thumbnail) | ||
} | ||
} | ||
.tag(SegmentIdSelection(friendId: friend.id)) | ||
} | ||
} | ||
} | ||
.listStyle(.insetGrouped) | ||
.navigationTitle("Private") | ||
.navigationBarTitleDisplayMode(.inline) | ||
} | ||
} |
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