Skip to content

Commit

Permalink
feat: update AdvancedViewController.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Sep 26, 2023
1 parent 31e8336 commit bb37941
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
13 changes: 7 additions & 6 deletions IVPNClient/Scenes/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,8 @@
</tableViewCell>
</cells>
</tableViewSection>
<tableViewSection headerTitle="Obfuscation" footerTitle="V2Ray notes" id="6LH-u0-MKt">
<tableViewSection headerTitle="Obfuscation" id="6LH-u0-MKt">
<string key="footerTitle">VPN obfuscation is a technique that masks VPN traffic to make it appear like standard internet traffic, helping to evade detection and bypass internet restrictions or censorship. Enable V2Ray only when connected to WiFi network. Manually reconnect VPN when switching WiFi networks. Learn more</string>
<cells>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" id="QHp-Ae-a81">
<rect key="frame" x="0.0" y="206.5" width="414" height="43.5"/>
Expand Down Expand Up @@ -1261,7 +1262,7 @@
<tableViewSection headerTitle="Alerts" id="aVc-A8-2Hy">
<cells>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="NetworkProtectionHeaderTableViewCell" rowHeight="80" id="skx-Ms-4mF">
<rect key="frame" x="0.0" y="361.5" width="414" height="80"/>
<rect key="frame" x="0.0" y="441.5" width="414" height="80"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="skx-Ms-4mF" id="rUf-E7-Q91">
<rect key="frame" x="0.0" y="0.0" width="414" height="80"/>
Expand Down Expand Up @@ -1304,7 +1305,7 @@
</tableViewCellContentView>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="NetworkProtectionHeaderTableViewCell" rowHeight="80" id="8fq-Nk-KYi">
<rect key="frame" x="0.0" y="441.5" width="414" height="80"/>
<rect key="frame" x="0.0" y="521.5" width="414" height="80"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="8fq-Nk-KYi" id="Ejf-j1-mNu">
<rect key="frame" x="0.0" y="0.0" width="414" height="80"/>
Expand Down Expand Up @@ -1347,7 +1348,7 @@
</tableViewCellContentView>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="NetworkProtectionHeaderTableViewCell" rowHeight="80" id="bOt-4p-lhc">
<rect key="frame" x="0.0" y="521.5" width="414" height="80"/>
<rect key="frame" x="0.0" y="601.5" width="414" height="80"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="bOt-4p-lhc" id="EOw-vM-m9y">
<rect key="frame" x="0.0" y="0.0" width="414" height="80"/>
Expand Down Expand Up @@ -1394,7 +1395,7 @@
<tableViewSection headerTitle="Diagnostic logs" id="sUb-ri-naL">
<cells>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" rowHeight="60" id="71h-Rn-GiM">
<rect key="frame" x="0.0" y="657.5" width="414" height="60"/>
<rect key="frame" x="0.0" y="737.5" width="414" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="71h-Rn-GiM" id="no5-dR-veT">
<rect key="frame" x="0.0" y="0.0" width="414" height="60"/>
Expand Down Expand Up @@ -1439,7 +1440,7 @@
</tableViewCellContentView>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="44" id="OOg-Pf-x1z">
<rect key="frame" x="0.0" y="717.5" width="414" height="44"/>
<rect key="frame" x="0.0" y="797.5" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="OOg-Pf-x1z" id="6Oa-Do-RYN">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,14 @@ extension AdvancedViewController {
let footer = view as! UITableViewHeaderFooterView
footer.textLabel?.textColor = UIColor.init(named: Theme.ivpnLabel6)

let urlString = "https://www.ivpn.net/knowledgebase/ios/known-issues-with-native-ios-kill-switch/"
var urlString = ""
switch section {
case 1:
urlString = "https://www.ivpn.net/"
default:
urlString = "https://www.ivpn.net/knowledgebase/ios/known-issues-with-native-ios-kill-switch/"
}

let label = ActiveLabel(frame: .zero)
let customType = ActiveType.custom(pattern: "Learn more")
label.numberOfLines = 0
Expand Down

0 comments on commit bb37941

Please sign in to comment.