Skip to content

Commit

Permalink
New Sort Options (#691)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Andrews <[email protected]>
  • Loading branch information
Sjmarf and EricBAndrews committed Dec 18, 2023
1 parent 554b35f commit 93a5726
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Mlem/Enums/Settings/PostSortType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Dependencies
import Foundation
import Dependencies

enum PostSortType: String, Codable, CaseIterable, Identifiable {
@Dependency(\.siteInformation) static var siteInformation
Expand Down
1 change: 1 addition & 0 deletions Mlem/Views/Tabs/Feeds/Feed Root.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Dependencies
import SwiftUI
import Dependencies

struct FeedRoot: View {
@EnvironmentObject var appState: AppState
Expand Down
2 changes: 1 addition & 1 deletion Mlem/Views/Tabs/Feeds/Feed View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct FeedView: View {

@StateObject var postTracker: PostTracker

@State var postSortType: PostSortType
@State var postSortType: PostSortType = .hot
@State var isLoading: Bool = true
@State var siteInformationLoading: Bool = true
@State var shouldLoad: Bool = false
Expand Down

0 comments on commit 93a5726

Please sign in to comment.