Skip to content

Commit

Permalink
Add set as current Mushaf to the top of the details screen (#610)
Browse files Browse the repository at this point in the history
Some users don't understand they need to tap "set as current Mushaf"
to change the current mushaf.
  • Loading branch information
mohamede1945 authored Dec 19, 2023
1 parent 4240803 commit b811940
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 8 additions & 4 deletions Features/ReadingSelectorFeature/View/ReadingDetails.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,23 @@ struct ReadingDetails<Value: Hashable, ImageView: View>: View {
NavigationView {
ScrollView {
VStack {
setCurrentMushafButton
.padding(.top)

Text(reading.description)
.padding()
.padding(.top)

propertiesList
.padding([.horizontal])
.padding(.top)
.frame(maxWidth: .infinity, alignment: .leading)

ReadingImage(imageView: imageView)
.padding()
.padding(.top)

setCurrentMushafButton
.padding()
.padding(.top)
}
.padding(.horizontal)
}
.navigationTitle(reading.title)
.navigationBarTitleDisplayMode(.inline)
Expand Down
6 changes: 5 additions & 1 deletion Features/ReadingSelectorFeature/View/ReadingInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ enum ReadingInfoTestData {
value: $0,
title: l("reading.hafs-1405.title"),
description: l("reading.hafs-1405.description"),
properties: []
properties: [
.init(type: .supports, property: "Property 1"),
.init(type: .supports, property: "Property 2"),
.init(type: .lacks, property: "Property 3"),
]
)
}
}
Expand Down

0 comments on commit b811940

Please sign in to comment.