Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate Breathless images from background #301

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ extension BreathlessDataSource: UITableViewDataSource {
cell.textLabel?.lineBreakMode = .byWordWrapping
cell.backgroundColor = .clear
cell.selectionStyle = .none
cell.imageView?.image = UIImage(named: viewData.imageName)

return cell
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import RxSwift
import RxCocoa

struct BreathlessItemViewData {
let imageName: String
let text: String
let cause: SymptomInputs.Breathlessness.Cause
}
Expand All @@ -21,23 +20,18 @@ class BreathlessViewModel {

viewData = Observable.just([
BreathlessItemViewData(
imageName: "house",
text: breath.p0,
cause: .leavingHouseOrDressing),
BreathlessItemViewData(
imageName: "stop",
text: breath.p1,
cause: .walkingYardsOrMinsOnGround),
BreathlessItemViewData(
imageName: "ground",
text: breath.p2,
cause: .groundOwnPace),
BreathlessItemViewData(
imageName: "hill",
text: breath.p3,
cause: .hurryOrHill),
BreathlessItemViewData(
imageName: "exercise",
text: breath.p4,
cause: .exercise)
]).asDriver(onErrorJustReturn: [])
Expand Down