Commit b2b68a39 authored by Jose Blaya's avatar Jose Blaya
Browse files

iOS13 support

parent f709f061
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="AJf-iF-18P">
<device id="retina5_9" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14868" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="AJf-iF-18P">
<device id="retina5_9" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14824"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
......@@ -41,7 +39,7 @@
<rect key="frame" x="0.0" y="0.0" width="239" height="226"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="image-purchase-success" translatesAutoresizingMaskIntoConstraints="NO" id="Mks-lR-0xQ">
<rect key="frame" x="87" y="0.0" width="65" height="100"/>
<rect key="frame" x="54" y="0.0" width="131" height="100"/>
<constraints>
<constraint firstAttribute="height" constant="100" id="Xrn-IM-8WP"/>
</constraints>
......@@ -275,7 +273,6 @@
<objects>
<navigationController id="AJf-iF-18P" sceneMemberID="viewController">
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="WfC-e3-lFo">
<rect key="frame" x="0.0" y="44" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<connections>
......@@ -401,7 +398,7 @@
<rect key="frame" x="0.0" y="0.0" width="239" height="246"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="image-account-failed" translatesAutoresizingMaskIntoConstraints="NO" id="4M0-Hc-ELJ">
<rect key="frame" x="56.666666666666671" y="0.0" width="126.00000000000001" height="120"/>
<rect key="frame" x="-6.3333333333333428" y="0.0" width="252" height="120"/>
<constraints>
<constraint firstAttribute="height" constant="120" id="ntK-Gd-IX5"/>
</constraints>
......@@ -589,7 +586,7 @@
<rect key="frame" x="0.0" y="0.0" width="239" height="296"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="image-no-internet" translatesAutoresizingMaskIntoConstraints="NO" id="Tcu-da-bn8">
<rect key="frame" x="27" y="0.0" width="185" height="120"/>
<rect key="frame" x="-66" y="0.0" width="371" height="120"/>
<constraints>
<constraint firstAttribute="height" constant="120" id="8Td-bO-gKB"/>
</constraints>
......
......@@ -19,6 +19,7 @@ public enum IKEv2EncryptionAlgorithm: Int, EnumsBuilder {
case algorithmAES256
case algorithmAES128GCM
case algorithmAES256GCM
@available(iOS 13.0, *)
case algorithmChaCha20Poly1305
public func description() -> String {
......@@ -38,3 +39,4 @@ public enum IKEv2EncryptionAlgorithm: Int, EnumsBuilder {
}
}
......@@ -185,11 +185,13 @@ extension CALayer {
extension UILabel: TextStyling {
public func style(style: TextStyle) {
let textAlignment = self.textAlignment
font = style.font
textColor = style.color
if let lineHeight = style.lineHeight {
setLineHeight(lineHeight)
}
self.textAlignment = textAlignment
}
}
......
......@@ -17,6 +17,9 @@ class TermsAndConditionsViewController: AutolayoutViewController, BrandableNavig
override func viewDidLoad() {
super.viewDidLoad()
if #available(iOS 13.0, *) {
self.modalPresentationStyle = .automatic
}
self.termsTitleLabel.text = self.termsAndConditionsTitle
self.termsLabel.text = self.termsAndConditions
self.navigationItem.leftBarButtonItem = UIBarButtonItem(
......@@ -39,4 +42,7 @@ class TermsAndConditionsViewController: AutolayoutViewController, BrandableNavig
Theme.current.applySmallSubtitle(termsLabel)
}
@IBAction func close(_ sender: Any) {
dismissModal()
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment