Skip to content

Commit

Permalink
User sheet: UI Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed May 15, 2021
1 parent 568aaf6 commit 337dc54
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
4 changes: 2 additions & 2 deletions RedditOs.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 0.4.1;
MARKETING_VERSION = 0.4.2;
PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.curiosity;
PRODUCT_NAME = Curiosity;
SWIFT_VERSION = 5.0;
Expand All @@ -672,7 +672,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 0.4.1;
MARKETING_VERSION = 0.4.2;
PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.curiosity;
PRODUCT_NAME = Curiosity;
SWIFT_VERSION = 5.0;
Expand Down
9 changes: 2 additions & 7 deletions RedditOs/Environements/Route.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@ enum Route: Identifiable, Hashable {
case user(user: User)
case subreddit(subreddit: String)
case defaultChannel(chanel: UIState.DefaultChannels)
case none

var id: String {
switch self {
case .user:
return "user"
case let .user(user):
return user.id
case let .subreddit(subreddit):
return subreddit
case .none:
return "none"
case let .defaultChannel(chanel):
return chanel.rawValue
}
Expand All @@ -48,8 +45,6 @@ enum Route: Identifiable, Hashable {
case let .defaultChannel(chanel):
SubredditPostsListView(name: chanel.rawValue)
.equatable()
case .none:
EmptyView()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ struct GlobalSearchPopoverView: View {
.onTapGesture {
uiState.searchRoute = .subreddit(subreddit: searchState.searchText)
}
GlobalSearchSubRow(icon: nil,
name: "Go to u/\(searchState.searchText)")
}.padding(4)
}

Expand Down
2 changes: 1 addition & 1 deletion RedditOs/Features/Users/sheet/UserSheetView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct UserSheetView: View {
PostNoSelectionPlaceholder()
}
}
.frame(width: 1500, height: 700)
.frame(width: 1200, height: 500)
.toolbar {
ToolbarItem(placement: .confirmationAction) {
Button {
Expand Down

0 comments on commit 337dc54

Please sign in to comment.