Skip to content

Commit

Permalink
Small UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
asiliuk committed Aug 24, 2020
1 parent 182fc6c commit 7d0c0ee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions BsuirScheduleApp/Views/AllLecturersView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,19 @@ struct AllLecturersView: View {

struct LecturerCell: View {
let lecturer: AllLecturersScreenLecturer
@Environment(\.sizeCategory) var sizeCategory

var body: some View {
HStack {
Avatar(url: lecturer.imageURL)
Text(lecturer.fullName)
if sizeCategory.isAccessibilityCategory {
VStack(alignment: .leading) {
Avatar(url: lecturer.imageURL)
Text(lecturer.fullName)
}
} else {
HStack {
Avatar(url: lecturer.imageURL)
Text(lecturer.fullName)
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions BsuirScheduleApp/Views/Content/ContentStateView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ struct LoadingState: View {
var body: some View {
VStack {
Spacer()
ProgressView()
Text("Загрузка...")
Spacer()
}
Expand Down
1 change: 0 additions & 1 deletion BsuirScheduleApp/Views/RootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ struct RootView: View {
case nil, .compact?:
TabView(selection: $currentTab) {
if !state.allFavorites.isEmpty { NavigationView { allFavorites }.tab(.favorites) }
NavigationView { allFavorites }.tab(.favorites)
NavigationView { allGroups }.tab(.groups)
NavigationView { allLecturers }.tab(.lecturers)
NavigationView { about }.tab(.about)
Expand Down

0 comments on commit 7d0c0ee

Please sign in to comment.