Skip to content

Commit

Permalink
Formatting changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
yspreen committed Apr 28, 2021
1 parent be88037 commit ab40037
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions DGCAVerifier/Models/HCert.swift
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ struct HCert {
info += [
InfoSection(
header: "Standardised Family Name",
content: last.replacingOccurrences(of: "<", with: String.zeroWidthSpace + "<"),
content: last.replacingOccurrences(
of: "<",
with: String.zeroWidthSpace + "<" + String.zeroWidthSpace),
style: .fixedWidthFont
),
]
Expand All @@ -177,7 +179,9 @@ struct HCert {
info += [
InfoSection(
header: "Standardised Given Name",
content: first.replacingOccurrences(of: "<", with: String.zeroWidthSpace + "<"),
content: first.replacingOccurrences(
of: "<",
with: String.zeroWidthSpace + "<" + String.zeroWidthSpace),
style: .fixedWidthFont
),
]
Expand Down
4 changes: 2 additions & 2 deletions DGCAVerifier/Storyboards/CertificateViewer.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="147"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="999" text="DE4382974329" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dbw-zt-5Bq">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" text="DE4382974329" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dbw-zt-5Bq">
<rect key="frame" x="16" y="100.66666666666667" width="343" height="38.333333333333329"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="32"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="998" text="Identification Number" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1YP-3x-Q7c">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Identification Number" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1YP-3x-Q7c">
<rect key="frame" x="16" y="16" width="343" height="80.666666666666671"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
Expand Down

0 comments on commit ab40037

Please sign in to comment.