Skip to content

Commit

Permalink
fix: #146 - Valwin logo, Bimedoc logo
Browse files Browse the repository at this point in the history
Co-authored-by: corentios <>
  • Loading branch information
corentios authored Dec 6, 2021
1 parent 1531cf5 commit b6e4ee4
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 11 deletions.
7 changes: 6 additions & 1 deletion ViteMaDose/Models/PartnerLogo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ enum PartnerLogo: String, CaseIterable, Equatable {
case maPharma = "Mapharma"
case avecMonDoc = "AvecMonDoc"
case meSoigner = "mesoigner"
case bimedoc = "Bimedoc"
case bimedoc = "bimedoc"
case valwin = "Valwin"

var image: UIImage? {
switch self {
Expand All @@ -35,6 +36,8 @@ enum PartnerLogo: String, CaseIterable, Equatable {
return UIImage(named: PartnerLogo.meSoigner.rawValue)
case .bimedoc:
return UIImage(named: PartnerLogo.bimedoc.rawValue)
case .valwin:
return UIImage(named: PartnerLogo.valwin.rawValue)
}
}

Expand All @@ -56,6 +59,8 @@ enum PartnerLogo: String, CaseIterable, Equatable {
self = .meSoigner
case PartnerLogo.bimedoc.rawValue:
self = .bimedoc
case PartnerLogo.valwin.rawValue:
self = .valwin
default:
return nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "logo_valwin.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions ViteMaDose/Views/Home/Footer/HomePartnersFooterView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ final class HomePartnersFooterView: UIView {
@IBOutlet private var logo6ImageView: UIImageView!
@IBOutlet private var logo7ImageView: UIImageView!
@IBOutlet private var logo8ImageView: UIImageView!

@IBOutlet private var logo9ImageView: UIImageView!

private lazy var allLogos: [UIImageView] = [
logo1ImageView,
logo2ImageView,
Expand All @@ -27,7 +28,8 @@ final class HomePartnersFooterView: UIView {
logoImageView5,
logo6ImageView,
logo7ImageView,
logo8ImageView
logo8ImageView,
logo9ImageView
]

override func awakeFromNib() {
Expand Down
32 changes: 24 additions & 8 deletions ViteMaDose/Views/Home/Footer/HomePartnersFooterView.xib
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19455" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19454"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="yuE-A0-LKr" customClass="HomePartnersFooterView" customModule="ViteMaDose" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="414" height="212"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="278"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillProportionally" alignment="center" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="uc1-xm-CWN">
<rect key="frame" x="24" y="20" width="366" height="180.5"/>
<rect key="frame" x="24" y="20" width="366" height="220.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="En partenariat avec" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cyh-aV-aid">
<rect key="frame" x="109.5" y="0.0" width="147" height="20.5"/>
Expand Down Expand Up @@ -86,15 +86,15 @@
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" alignment="center" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="qq6-k3-Otm">
<rect key="frame" x="123" y="150.5" width="120" height="30"/>
<rect key="frame" x="58" y="150.5" width="250" height="30"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="mesoigner" translatesAutoresizingMaskIntoConstraints="NO" id="h93-g7-6p2">
<rect key="frame" x="0.0" y="0.0" width="120" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="120" id="4RK-8r-uKD"/>
</constraints>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Bimedoc" translatesAutoresizingMaskIntoConstraints="NO" id="RYM-Sy-49q" userLabel="Logo8 Image">
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="bimedoc" translatesAutoresizingMaskIntoConstraints="NO" id="RYM-Sy-49q" userLabel="Logo8 Image">
<rect key="frame" x="130" y="0.0" width="120" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="120" id="P5Q-vA-UaF"/>
Expand All @@ -105,6 +105,20 @@
<constraint firstAttribute="height" constant="30" id="Viq-cG-rYL"/>
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" alignment="center" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="uyI-Kl-4tB">
<rect key="frame" x="123" y="190.5" width="120" height="30"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Valwin" translatesAutoresizingMaskIntoConstraints="NO" id="obJ-2k-ANU" userLabel="Logo9 Image">
<rect key="frame" x="0.0" y="0.0" width="120" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="120" id="Jkn-7D-9C8"/>
</constraints>
</imageView>
</subviews>
<constraints>
<constraint firstAttribute="height" constant="30" id="vPu-Aq-vk5"/>
</constraints>
</stackView>
</subviews>
</stackView>
</subviews>
Expand All @@ -123,20 +137,22 @@
<outlet property="logo6ImageView" destination="mwg-l9-lwO" id="H3D-dN-yjB"/>
<outlet property="logo7ImageView" destination="h93-g7-6p2" id="3hQ-fb-R0s"/>
<outlet property="logo8ImageView" destination="RYM-Sy-49q" id="3AX-pP-kvQ"/>
<outlet property="logo9ImageView" destination="obJ-2k-ANU" id="2eE-PU-gTU"/>
<outlet property="logoImageView5" destination="cZc-FQ-ZG3" id="5Zy-Ph-EJ9"/>
<outlet property="titleLabel" destination="cyh-aV-aid" id="hAe-W2-88N"/>
</connections>
<point key="canvasLocation" x="1114.4927536231885" y="42.857142857142854"/>
<point key="canvasLocation" x="1114.4927536231885" y="64.955357142857139"/>
</view>
</objects>
<resources>
<image name="AvecMonDoc" width="831" height="151"/>
<image name="Bimedoc" width="613" height="159"/>
<image name="Doctolib" width="756" height="262"/>
<image name="Keldoc" width="889" height="282"/>
<image name="Maiia" width="1021" height="371"/>
<image name="Mapharma" width="1120" height="234"/>
<image name="Ordoclic" width="805" height="185"/>
<image name="Valwin" width="687" height="185"/>
<image name="bimedoc" width="613" height="159"/>
<image name="mesoigner" width="380" height="99"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
Expand Down

0 comments on commit b6e4ee4

Please sign in to comment.