Skip to content

Commit

Permalink
fix(ios): Fix peer counter
Browse files Browse the repository at this point in the history
  • Loading branch information
gfanton authored and aeddi committed Dec 1, 2019
1 parent 36be92c commit c91e439
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
26 changes: 13 additions & 13 deletions ios/Example/GomobileIPFS/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<device id="ipad11_0rounded" orientation="portrait" layout="fullscreen" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15510"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15404"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand All @@ -16,11 +16,11 @@
<viewControllerLayoutGuide type="bottom" id="4nO-1w-Lzz"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
<rect key="frame" x="0.0" y="0.0" width="834" height="1194"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="IPFS is starting" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" highlighted="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WSE-hU-rMQ">
<rect key="frame" x="335.5" y="358" width="163" height="29"/>
<rect key="frame" x="106" y="94.5" width="163" height="29"/>
<accessibility key="accessibilityConfiguration">
<accessibilityTraits key="traits" staticText="YES" notEnabled="YES"/>
</accessibility>
Expand All @@ -30,19 +30,19 @@
<nil key="highlightedColor"/>
</label>
<activityIndicatorView opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" hidesWhenStopped="YES" animating="YES" style="medium" translatesAutoresizingMaskIntoConstraints="NO" id="36J-gm-qAy">
<rect key="frame" x="407" y="403" width="20" height="20"/>
<rect key="frame" x="177.5" y="139.5" width="20" height="20"/>
<color key="color" systemColor="systemGrayColor" red="0.5568627451" green="0.5568627451" blue="0.57647058819999997" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</activityIndicatorView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gDm-bu-yFK">
<rect key="frame" x="32" y="403" width="770" height="0.0"/>
<rect key="frame" x="32" y="139.5" width="311" height="0.0"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="PeerCounter" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Unv-jn-4ve">
<rect key="frame" x="347.5" y="571" width="139" height="29"/>
<rect key="frame" x="118" y="307.5" width="139" height="29"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="24"/>
<nil key="textColor"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<button hidden="YES" opaque="NO" contentMode="scaleToFill" enabled="NO" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pyH-eh-cjt">
Expand All @@ -51,16 +51,16 @@
<state key="normal" title="Random XKCD"/>
</button>
<activityIndicatorView hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" hidesWhenStopped="YES" style="medium" translatesAutoresizingMaskIntoConstraints="NO" id="P9Q-on-kx0">
<rect key="frame" x="407" y="824" width="20" height="20"/>
<rect key="frame" x="177.5" y="560.5" width="20" height="20"/>
</activityIndicatorView>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NXJ-cM-Vlh">
<rect key="frame" x="392" y="784" width="50.5" height="24"/>
<rect key="frame" x="162.5" y="520.5" width="50.5" height="24"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="20"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qPB-7N-CC2">
<rect key="frame" x="32" y="824" width="770" height="19.5"/>
<rect key="frame" x="32" y="560.5" width="311" height="19.5"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" systemColor="systemRedColor" red="1" green="0.23137254900000001" blue="0.18823529410000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
Expand Down Expand Up @@ -113,11 +113,11 @@
<viewControllerLayoutGuide type="bottom" id="ALY-Ke-h3M"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="eUF-xF-Gb0">
<rect key="frame" x="0.0" y="0.0" width="834" height="1144"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="623"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Glf-pA-Lco">
<rect key="frame" x="0.0" y="0.0" width="834" height="1144"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="623"/>
</imageView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
Expand Down Expand Up @@ -145,7 +145,7 @@
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="GvG-Gl-BP4" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="DYs-lf-PPX">
<rect key="frame" x="0.0" y="0.0" width="834" height="50"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
Expand Down
14 changes: 7 additions & 7 deletions ios/Example/GomobileIPFS/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class ViewController: UIViewController {
self.PIDLoading.startAnimating()

XKCDButton.addTarget(
self,
action: #selector(xkcdButtonClicked),
for: .touchUpInside
self,
action: #selector(xkcdButtonClicked),
for: .touchUpInside
)

DispatchQueue.global(qos: .background).async {
Expand Down Expand Up @@ -143,10 +143,10 @@ class ViewController: UIViewController {
PeerCounter.isHidden = false

NotificationCenter.default.addObserver(
self,
selector: #selector(updatePeerCount(_:)),
name: Notification.Name("updatePeerCount"),
object: nil
self,
selector: #selector(updatePeerCount(_:)),
name: Notification.Name("updatePeerCount"),
object: nil
)
}

Expand Down
2 changes: 1 addition & 1 deletion ios/Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ SPEC CHECKSUMS:
FBSnapshotTestCase: 094f9f314decbabe373b87cc339bea235a63e07a
GomobileIPFS: 1d0fa985b6310d12756699664f59ed038db1f1d4

PODFILE CHECKSUM: b45f1652965217a3a80a8b94b9989999f6727e6c
PODFILE CHECKSUM: a4ddb138f19001efe077fe0e09740996a4de79c3

COCOAPODS: 1.8.4

0 comments on commit c91e439

Please sign in to comment.