refactor: Various UI improvements

Resolves: https://gitlab.steamware.net/eqn/eqn.ios/-/issues/37
This commit is contained in:
Andrea Busi
2021-03-20 16:39:51 +01:00
parent 5e61c126aa
commit f953d5fdb4
19 changed files with 257 additions and 133 deletions
@@ -24,6 +24,7 @@
6562C80725FFA6B100C85273 /* SeismicNetworkViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6562C80625FFA6B100C85273 /* SeismicNetworkViewModel.swift */; };
6586971125F44C26009C0182 /* EQNBlurredCloseButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6586971025F44C26009C0182 /* EQNBlurredCloseButton.swift */; };
658BAB7B25FE67930015C454 /* EQNBaseMapRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 658BAB7A25FE67930015C454 /* EQNBaseMapRepresentable.swift */; };
65BBB22C26064BE6005D6CDF /* SegnalazioniLast24HoursCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65BBB22B26064BE6005D6CDF /* SegnalazioniLast24HoursCell.swift */; };
65DBFB4B25E29DD60041CBA6 /* SeismicNetworksMapDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65DBFB4A25E29DD60041CBA6 /* SeismicNetworksMapDetailViewController.swift */; };
65DBFB7425E2BBF20041CBA6 /* GADTMediumTemplateView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 65DBFB6F25E2BBF20041CBA6 /* GADTMediumTemplateView.xib */; };
65DBFB7525E2BBF20041CBA6 /* GADTMediumTemplateView.m in Sources */ = {isa = PBXBuildFile; fileRef = 65DBFB7125E2BBF20041CBA6 /* GADTMediumTemplateView.m */; };
@@ -290,6 +291,7 @@
6562C80625FFA6B100C85273 /* SeismicNetworkViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SeismicNetworkViewModel.swift; sourceTree = "<group>"; };
6586971025F44C26009C0182 /* EQNBlurredCloseButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EQNBlurredCloseButton.swift; sourceTree = "<group>"; };
658BAB7A25FE67930015C454 /* EQNBaseMapRepresentable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EQNBaseMapRepresentable.swift; sourceTree = "<group>"; };
65BBB22B26064BE6005D6CDF /* SegnalazioniLast24HoursCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SegnalazioniLast24HoursCell.swift; sourceTree = "<group>"; };
65DBFB4A25E29DD60041CBA6 /* SeismicNetworksMapDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SeismicNetworksMapDetailViewController.swift; sourceTree = "<group>"; };
65DBFB6F25E2BBF20041CBA6 /* GADTMediumTemplateView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = GADTMediumTemplateView.xib; sourceTree = "<group>"; };
65DBFB7025E2BBF20041CBA6 /* GADTTemplateView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GADTTemplateView.h; sourceTree = "<group>"; };
@@ -996,6 +998,7 @@
8C5EA23B2177B51C002DC156 /* SegnalazioniViewController.h */,
8C5EA23C2177B51C002DC156 /* SegnalazioniViewController.m */,
65355FFE25F38D3300BB57D2 /* SegnalazioniMapViewController.swift */,
65BBB22B26064BE6005D6CDF /* SegnalazioniLast24HoursCell.swift */,
);
path = Reports;
sourceTree = "<group>";
@@ -1554,6 +1557,7 @@
DCB45BC8250E86E100DB2D0C /* SeismicSettingsViewController.swift in Sources */,
DCF10DC624D2B8C7009F34C3 /* EQNPurchaseUtility.swift in Sources */,
DC0E551324F8063300D54270 /* SettingSegmentedTableViewCell.swift in Sources */,
65BBB22C26064BE6005D6CDF /* SegnalazioniLast24HoursCell.swift in Sources */,
DC47D1BC252A0C2B004119F6 /* AlertsPastEartquakesTableViewCell.swift in Sources */,
654D18C925F93CD700BB6DB0 /* EQNMapAnnotationPastquake.swift in Sources */,
DCEFF21724F58569009D3FE1 /* SettingSectionHeaderView.swift in Sources */,
@@ -0,0 +1,36 @@
//
// SegnalazioniLast24HoursCell.swift
// Earthquake Network
//
// Created by Andrea Busi on 20/03/21.
// Copyright © 2021 Earthquake Network. All rights reserved.
//
import UIKit
class SegnalazioniLast24HoursCell: EQNBaseTableViewCell {
@IBOutlet private weak var mildReportsLabel: UILabel!
@IBOutlet private weak var strongReportsLabel: UILabel!
@IBOutlet private weak var veryStrongReportsLabel: UILabel!
@IBOutlet private weak var twitterButton: UIButton! {
didSet {
twitterButton.imageView?.contentMode = .scaleAspectFit
}
}
@IBOutlet private weak var telegramButton: UIButton! {
didSet {
telegramButton.imageView?.contentMode = .scaleAspectFit
}
}
@IBOutlet private weak var mapButton: UIButton!
// MARK: - Public
@objc func updateUI(for smartphoneNetwork: EQNReteSmartphone) {
self.mildReportsLabel.text = "\(smartphoneNetwork.manualGreen)"
self.strongReportsLabel.text = "\(smartphoneNetwork.manualYellow)"
self.veryStrongReportsLabel.text = "\(smartphoneNetwork.manualRed)"
}
}
@@ -81,38 +81,30 @@
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
if (indexPath.row == 0) {
SegnalazioniLast24HoursCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Last24HCell" forIndexPath:indexPath];
EQNReteSmartphone *reteSmartPhone = [EQNManager defaultManager].rete_smartphone;
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Last24HCell" forIndexPath:indexPath];
UILabel *verdeLabel = (UILabel *)[cell viewWithTag:1];
verdeLabel.text = [NSString stringWithFormat:@"%ld", (long)reteSmartPhone.manualGreen];
UILabel *giallaLabel = (UILabel *)[cell viewWithTag:2];
giallaLabel.text = [NSString stringWithFormat:@"%ld", (long)reteSmartPhone.manualYellow];
UILabel *rossaLabel = (UILabel *)[cell viewWithTag:3];
rossaLabel.text = [NSString stringWithFormat:@"%ld", (long)reteSmartPhone.manualRed];
[cell updateUIFor:reteSmartPhone];
return cell;
}
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ReportEarthquakeCell" forIndexPath:indexPath];
UILabel *verdeLabel = (UILabel *)[cell viewWithTag:2];
verdeLabel.layer.borderColor = [UIColor darkGrayColor].CGColor;
verdeLabel.layer.borderWidth = AppTheme.shared.borderWidth;
verdeLabel.layer.cornerRadius = AppTheme.shared.borderCornerRadius;
verdeLabel.layer.borderColor = AppTheme.shared.buttonBorderColor.CGColor;
verdeLabel.layer.borderWidth = AppTheme.shared.buttonBorderWidth;
verdeLabel.layer.cornerRadius = AppTheme.shared.buttonCornerRadius;
verdeLabel.clipsToBounds = YES;
UILabel *giallaLabel = (UILabel *)[cell viewWithTag:3];
giallaLabel.layer.borderColor = [UIColor darkGrayColor].CGColor;
giallaLabel.layer.borderWidth = AppTheme.shared.borderWidth;
giallaLabel.layer.cornerRadius = AppTheme.shared.borderCornerRadius;
giallaLabel.layer.borderColor = AppTheme.shared.buttonBorderColor.CGColor;
giallaLabel.layer.borderWidth = AppTheme.shared.buttonBorderWidth;
giallaLabel.layer.cornerRadius = AppTheme.shared.buttonCornerRadius;
giallaLabel.clipsToBounds = YES;
UILabel *rossaLabel = (UILabel *)[cell viewWithTag:4];
rossaLabel.layer.borderColor = [UIColor darkGrayColor].CGColor;
rossaLabel.layer.borderWidth = AppTheme.shared.borderWidth;
rossaLabel.layer.cornerRadius = AppTheme.shared.borderCornerRadius;
rossaLabel.layer.borderColor = AppTheme.shared.buttonBorderColor.CGColor;
rossaLabel.layer.borderWidth = AppTheme.shared.buttonBorderWidth;
rossaLabel.layer.cornerRadius = AppTheme.shared.buttonCornerRadius;
rossaLabel.clipsToBounds = YES;
return cell;
@@ -133,6 +125,12 @@
[self presentViewController:controller animated:YES completion:nil];
}
- (IBAction)openTelegramTapped:(id)sender
{
NSURL *telegramUrl = [NSURL URLWithString:EQNTelegramUrl];
[[UIApplication sharedApplication] openURL:telegramUrl options:@{} completionHandler:nil];
}
- (IBAction)refreshDataTapped:(id)sender
{
[[EQNManager defaultManager] sincronizza];
@@ -17,7 +17,7 @@ class SeismicNetworkAdvertiseTableViewCell: UITableViewCell {
private lazy var containerView: UIView = {
let view = UIView(frame: .zero)
view.translatesAutoresizingMaskIntoConstraints = false
view.layer.cornerRadius = AppTheme.shared.borderCornerRadius
view.layer.cornerRadius = AppTheme.shared.cardCornerRadius
view.layer.masksToBounds = false
// add shadow
@@ -56,10 +56,10 @@ class SeismicNetworkAdvertiseTableViewCell: UITableViewCell {
// container view
contentView.addSubview(containerView)
containerView.backgroundColor = .red
containerView.topAnchor.constraint(equalTo: contentView.topAnchor, constant: 8.0).isActive = true
containerView.topAnchor.constraint(equalTo: contentView.topAnchor, constant: 4.0).isActive = true
containerView.trailingAnchor.constraint(equalTo: contentView.trailingAnchor, constant: -8.0).isActive = true
containerView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor, constant: 8.0).isActive = true
containerView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor, constant: -8.0).isActive = true
containerView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor, constant: -4.0).isActive = true
containerView.heightAnchor.constraint(equalToConstant: 350.0).isActive = true
containerView.addSubview(bannerView)
@@ -69,7 +69,7 @@ class SeismicNetworkTableViewCell: UITableViewCell {
private lazy var containerView: UIView = {
let view = UIView(frame: .zero)
view.translatesAutoresizingMaskIntoConstraints = false
view.layer.cornerRadius = AppTheme.shared.borderCornerRadius
view.layer.cornerRadius = AppTheme.shared.cardCornerRadius
view.layer.masksToBounds = false
// add shadow
@@ -168,7 +168,7 @@ class SeismicNetworkTableViewCell: UITableViewCell {
mapView.translatesAutoresizingMaskIntoConstraints = false
mapView.isScrollEnabled = false
mapView.isZoomEnabled = false
mapView.layer.cornerRadius = AppTheme.shared.borderCornerRadius
mapView.layer.cornerRadius = AppTheme.shared.cardCornerRadius
mapView.layer.masksToBounds = true
return mapView
}()
@@ -208,10 +208,10 @@ class SeismicNetworkTableViewCell: UITableViewCell {
// container view
contentView.addSubview(containerView)
containerView.topAnchor.constraint(equalTo: contentView.topAnchor, constant: 8.0).isActive = true
containerView.topAnchor.constraint(equalTo: contentView.topAnchor, constant: 4.0).isActive = true
containerView.trailingAnchor.constraint(equalTo: contentView.trailingAnchor, constant: -8.0).isActive = true
containerView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor, constant: 8.0).isActive = true
containerView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor, constant: -8.0).isActive = true
containerView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor, constant: -4.0).isActive = true
// this variable is used to keep track of the previous view, in order to attach proper constraints
var previousView: UIView = containerView
@@ -43,7 +43,7 @@ class SeismicCardSettingsViewController: UIViewController {
// MARK: - Private
private func setupUI() {
containerView.layer.cornerRadius = AppTheme.shared.borderCornerRadius
containerView.layer.cornerRadius = AppTheme.shared.cardCornerRadius
containerView.layer.masksToBounds = true
}
@@ -69,7 +69,7 @@ class SeismicFiltersViewController: UIViewController, UITableViewDelegate, UITab
}
private func setupUI() {
containerView.layer.cornerRadius = AppTheme.shared.borderCornerRadius
containerView.layer.cornerRadius = AppTheme.shared.cardCornerRadius
containerView.layer.masksToBounds = true
tableView.estimatedRowHeight = 100.0
@@ -39,7 +39,7 @@ class SeismicSettingsViewController: UIViewController {
// MARK: - Private
private func setupUI() {
containerView.layer.cornerRadius = AppTheme.shared.borderCornerRadius
containerView.layer.cornerRadius = AppTheme.shared.cardCornerRadius
containerView.layer.masksToBounds = true
// load saved country (if exists)
+1
View File
@@ -19,6 +19,7 @@ static BOOL const EQNDebugPrintResponse = NO;
static NSString * const EQNWebsiteAddress = @"https://www.sismo.app";
static NSString * const EQNTwitterProfileUrl = @"https://twitter.com/SismoDetector";
static NSString * const EQNAppStoreUrl = @"https://itunes.apple.com/app/id1449893235?mt=8";
static NSString * const EQNTelegramUrl = @"https://www.telegram.me/eqn_realtime";
#pragma mark - Math Constants
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "telegram_icon.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "twitter_icon.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

@@ -5,9 +5,9 @@
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x26",
"green" : "0x22",
"red" : "0x1C"
"blue" : "0.149",
"green" : "0.133",
"red" : "0.110"
}
},
"idiom" : "universal"
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "64",
"green" : "64",
"red" : "64"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -87,7 +87,7 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2,29 €" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Z3v-8b-VXq">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="-" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Z3v-8b-VXq">
<rect key="frame" x="0.0" y="30.5" width="377.5" height="41"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleTitle0"/>
<nil key="textColor"/>
@@ -235,7 +235,7 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2,29 €" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ktB-ql-kF4">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="-" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ktB-ql-kF4">
<rect key="frame" x="0.0" y="30.5" width="377.5" height="41"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleTitle0"/>
<nil key="textColor"/>
@@ -378,7 +378,7 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<rect key="frame" x="0.0" y="88" width="414" height="670"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="Last24HCell" rowHeight="150" id="gCd-P1-ZLD" customClass="EQNBaseTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="Last24HCell" rowHeight="150" id="gCd-P1-ZLD" customClass="SegnalazioniLast24HoursCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="414" height="150"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="gCd-P1-ZLD" id="R8c-1D-IWG">
@@ -386,7 +386,7 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="E79-AU-OmF">
<rect key="frame" x="8" y="8" width="398" height="134"/>
<rect key="frame" x="8" y="4" width="398" height="142"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="User reports last 24h" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="A3b-4E-9kc" customClass="EQNEdgeInsetLabel" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="165.5" height="26"/>
@@ -456,10 +456,19 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" spacing="14" translatesAutoresizingMaskIntoConstraints="NO" id="uGH-T6-e5M">
<rect key="frame" x="8" y="86" width="382" height="40"/>
<rect key="frame" x="8" y="94" width="382" height="40"/>
<subviews>
<button opaque="NO" tag="4" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="K8a-lu-weO" customClass="EQNRoundedButton" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="118" height="40"/>
<state key="normal" image="twitter_icon">
<color key="titleColor" name="Gray (dark)"/>
</state>
<connections>
<action selector="openTwitterTapped:" destination="fbo-Ug-IiE" eventType="touchUpInside" id="OYL-6o-qfM"/>
</connections>
</button>
<button opaque="NO" tag="4" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2A5-yR-eOQ" customClass="EQNRoundedButton" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="184" height="40"/>
<rect key="frame" x="132" y="0.0" width="118" height="40"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<state key="normal" title="MAP">
<color key="titleColor" name="Gray (dark)"/>
@@ -468,14 +477,13 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<action selector="openMapTapped:" destination="fbo-Ug-IiE" eventType="touchUpInside" id="dwF-eC-O4M"/>
</connections>
</button>
<button opaque="NO" tag="4" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="K8a-lu-weO" customClass="EQNRoundedButton" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="198" y="0.0" width="184" height="40"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<state key="normal" title="VIEW ON TWITTER">
<button opaque="NO" tag="4" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bdg-uT-Iq4" customClass="EQNRoundedButton" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="264" y="0.0" width="118" height="40"/>
<state key="normal" image="telegram_icon">
<color key="titleColor" name="Gray (dark)"/>
</state>
<connections>
<action selector="openTwitterTapped:" destination="fbo-Ug-IiE" eventType="touchUpInside" id="OYL-6o-qfM"/>
<action selector="openTelegramTapped:" destination="fbo-Ug-IiE" eventType="touchUpInside" id="0tf-8p-t1q"/>
</connections>
</button>
</subviews>
@@ -498,15 +506,21 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
</view>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="E79-AU-OmF" secondAttribute="bottom" constant="8" id="2JN-kw-B11"/>
<constraint firstAttribute="bottom" secondItem="E79-AU-OmF" secondAttribute="bottom" constant="4" id="2JN-kw-B11"/>
<constraint firstItem="E79-AU-OmF" firstAttribute="leading" secondItem="R8c-1D-IWG" secondAttribute="leading" constant="8" id="dlB-Bq-M68"/>
<constraint firstAttribute="trailing" secondItem="E79-AU-OmF" secondAttribute="trailing" constant="8" id="zCp-51-9uY"/>
<constraint firstItem="E79-AU-OmF" firstAttribute="top" secondItem="R8c-1D-IWG" secondAttribute="top" constant="8" id="zfn-MN-HCc"/>
<constraint firstItem="E79-AU-OmF" firstAttribute="top" secondItem="R8c-1D-IWG" secondAttribute="top" constant="4" id="zfn-MN-HCc"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="containerView" destination="E79-AU-OmF" id="PDc-4C-hS3"/>
<outlet property="mapButton" destination="2A5-yR-eOQ" id="GQ1-76-139"/>
<outlet property="mildReportsLabel" destination="KI7-0R-pnR" id="xaA-Ug-CTH"/>
<outlet property="strongReportsLabel" destination="jMx-Or-mvH" id="2dx-1u-pKs"/>
<outlet property="telegramButton" destination="bdg-uT-Iq4" id="9tr-zk-DgV"/>
<outlet property="twitterButton" destination="K8a-lu-weO" id="P63-kS-7WV"/>
<outlet property="veryStrongReportsLabel" destination="JAu-kk-n4H" id="5De-vS-pWq"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="ReportEarthquakeCell" rowHeight="300" id="2rf-Tr-3Id" customClass="EQNBaseTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
@@ -517,7 +531,7 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8o8-tL-laM">
<rect key="frame" x="8" y="10" width="398" height="282"/>
<rect key="frame" x="8" y="4" width="398" height="292"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="I felt an earthquake!" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0Ak-hW-RBU" customClass="EQNEdgeInsetLabel" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="155.5" height="26"/>
@@ -530,13 +544,13 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" tag="1" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Press the button below to report an earthquake" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" minimumScaleFactor="1" translatesAutoresizingMaskIntoConstraints="NO" id="dIG-8S-PcU">
<rect key="frame" x="8" y="34" width="382" height="30"/>
<rect key="frame" x="8" y="34" width="382" height="40"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" name="Gray (dark)"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" tag="2" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="stO-8E-VwV">
<rect key="frame" x="8" y="78" width="382" height="60"/>
<rect key="frame" x="8" y="88" width="382" height="60"/>
<color key="backgroundColor" red="0.0" green="1" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="60" id="m15-9v-KEa"/>
@@ -548,13 +562,13 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<nil key="highlightedColor"/>
</label>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" showsTouchWhenHighlighted="YES" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dJr-CG-IVb">
<rect key="frame" x="8" y="78" width="382" height="60"/>
<rect key="frame" x="8" y="88" width="382" height="60"/>
<connections>
<action selector="sendReportTapped:" destination="fbo-Ug-IiE" eventType="touchUpInside" id="3N5-3P-aZH"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" tag="3" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yE5-wI-8FM">
<rect key="frame" x="8" y="146" width="382" height="60"/>
<rect key="frame" x="8" y="156" width="382" height="60"/>
<color key="backgroundColor" red="1" green="1" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="60" id="NY4-Ic-MYZ"/>
@@ -566,13 +580,13 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<nil key="highlightedColor"/>
</label>
<button opaque="NO" tag="2" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" showsTouchWhenHighlighted="YES" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="VvF-ZZ-Pv0">
<rect key="frame" x="8" y="146" width="382" height="60"/>
<rect key="frame" x="8" y="156" width="382" height="60"/>
<connections>
<action selector="sendReportTapped:" destination="fbo-Ug-IiE" eventType="touchUpInside" id="lS8-5b-SxC"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" tag="4" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sqK-xD-x0a">
<rect key="frame" x="8" y="214" width="382" height="60"/>
<rect key="frame" x="8" y="224" width="382" height="60"/>
<color key="backgroundColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="60" id="8XC-q4-jBH"/>
@@ -584,7 +598,7 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<nil key="highlightedColor"/>
</label>
<button opaque="NO" tag="3" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" showsTouchWhenHighlighted="YES" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="88P-Uu-DJF">
<rect key="frame" x="8" y="214" width="382" height="60"/>
<rect key="frame" x="8" y="224" width="382" height="60"/>
<connections>
<action selector="sendReportTapped:" destination="fbo-Ug-IiE" eventType="touchUpInside" id="haJ-HO-HdK"/>
</connections>
@@ -627,8 +641,8 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<constraints>
<constraint firstItem="8o8-tL-laM" firstAttribute="leading" secondItem="dGe-Vk-HyH" secondAttribute="leading" constant="8" id="FUj-Do-gW5"/>
<constraint firstAttribute="trailing" secondItem="8o8-tL-laM" secondAttribute="trailing" constant="8" id="UYV-GP-8hG"/>
<constraint firstItem="8o8-tL-laM" firstAttribute="top" secondItem="dGe-Vk-HyH" secondAttribute="top" constant="10" id="XpJ-yT-X4n"/>
<constraint firstAttribute="bottom" secondItem="8o8-tL-laM" secondAttribute="bottom" constant="8" id="tXq-V4-GAh"/>
<constraint firstItem="8o8-tL-laM" firstAttribute="top" secondItem="dGe-Vk-HyH" secondAttribute="top" constant="4" id="XpJ-yT-X4n"/>
<constraint firstAttribute="bottom" secondItem="8o8-tL-laM" secondAttribute="bottom" constant="4" id="tXq-V4-GAh"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
@@ -679,7 +693,7 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="SFa-PG-ACD" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-7781.25" y="-6364.4366197183099"/>
<point key="canvasLocation" x="-7782.6086956521749" y="-6364.9553571428569"/>
</scene>
<!--Seismic Settings Networks View Controller-->
<scene sceneID="SlB-EL-vHk">
@@ -1544,24 +1558,24 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<rect key="frame" x="0.0" y="88" width="414" height="670"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="NoLocationCell" rowHeight="160" id="MaH-TI-fdg" customClass="AlertsNoLocationTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="414" height="160"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="NoLocationCell" rowHeight="150" id="MaH-TI-fdg" customClass="AlertsNoLocationTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="414" height="150"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="MaH-TI-fdg" id="PFt-Bo-Ecw">
<rect key="frame" x="0.0" y="0.0" width="414" height="160"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="150"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fLe-k7-PUJ">
<rect key="frame" x="8" y="8" width="398" height="144"/>
<rect key="frame" x="8" y="4" width="398" height="142"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Hai scelto di impedire alla app di leggere la posizione del tuo dispositivo. NON riceverai notifiche ed allerte in tempo reale." lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SuO-hV-kUz">
<rect key="frame" x="8" y="8" width="382" height="80"/>
<rect key="frame" x="8" y="8" width="382" height="78"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
<color key="textColor" name="Red"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Kx4-f0-Dwc" customClass="EQNRoundedButton" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="8" y="96" width="382" height="40"/>
<rect key="frame" x="8" y="94" width="382" height="40"/>
<color key="backgroundColor" systemColor="opaqueSeparatorColor"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="RCh-fA-YW7"/>
@@ -1587,9 +1601,9 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
</view>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="fLe-k7-PUJ" secondAttribute="bottom" constant="8" id="24j-7k-C6F"/>
<constraint firstAttribute="bottom" secondItem="fLe-k7-PUJ" secondAttribute="bottom" constant="4" id="24j-7k-C6F"/>
<constraint firstItem="fLe-k7-PUJ" firstAttribute="leading" secondItem="PFt-Bo-Ecw" secondAttribute="leading" constant="8" id="FDs-ia-ahe"/>
<constraint firstItem="fLe-k7-PUJ" firstAttribute="top" secondItem="PFt-Bo-Ecw" secondAttribute="top" constant="8" id="GEe-nc-CYi"/>
<constraint firstItem="fLe-k7-PUJ" firstAttribute="top" secondItem="PFt-Bo-Ecw" secondAttribute="top" constant="4" id="GEe-nc-CYi"/>
<constraint firstAttribute="trailing" secondItem="fLe-k7-PUJ" secondAttribute="trailing" constant="8" id="QAd-oq-BMQ"/>
</constraints>
</tableViewCellContentView>
@@ -1599,15 +1613,15 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<outlet property="messageLabel" destination="SuO-hV-kUz" id="NaR-eN-Dko"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="SeismicNotificationExpandedCell" rowHeight="580" id="C7v-rs-1fb" customClass="AlertsSeismicNotificationExpandedTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="188" width="414" height="580"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="SeismicNotificationExpandedCell" rowHeight="570" id="C7v-rs-1fb" customClass="AlertsSeismicNotificationExpandedTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="178" width="414" height="570"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="C7v-rs-1fb" id="aEH-vE-u7m">
<rect key="frame" x="0.0" y="0.0" width="414" height="580"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="570"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TfA-6E-CQc">
<rect key="frame" x="8" y="8" width="398" height="564"/>
<rect key="frame" x="8" y="4" width="398" height="562"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Rilevato un sisma debole a 150 km (Test)" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="M7i-e5-N6v">
<rect key="frame" x="8" y="8" width="382" height="67.5"/>
@@ -1630,13 +1644,13 @@ Sisma rilevato da 10 smartphone</string>
<nil key="highlightedColor"/>
</label>
<mapView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" mapType="standard" translatesAutoresizingMaskIntoConstraints="NO" id="tqM-QH-LJ3">
<rect key="frame" x="0.0" y="181.5" width="398" height="158"/>
<rect key="frame" x="0.0" y="181.5" width="398" height="156"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="130" id="w6M-Ao-KHo"/>
</constraints>
</mapView>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="Q2V-3p-DUh">
<rect key="frame" x="8" y="347.5" width="382" height="40"/>
<rect key="frame" x="8" y="345.5" width="382" height="40"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="V2G-UH-Ibe" customClass="EQNRoundedButton" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="187" height="40"/>
@@ -1664,7 +1678,7 @@ Sisma rilevato da 10 smartphone</string>
</constraints>
</stackView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Jwx-kf-che" customClass="EQNRoundedButton" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="8" y="395.5" width="382" height="40"/>
<rect key="frame" x="8" y="393.5" width="382" height="40"/>
<color key="backgroundColor" white="1" alpha="0.5" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="VIEW ON TWITTER">
<color key="titleColor" name="Gray (dark)"/>
@@ -1674,13 +1688,13 @@ Sisma rilevato da 10 smartphone</string>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="The magnitude will be estimated by the national seismic network and it will appear in the Seismic Networks tab of the app" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GIh-sK-KX1">
<rect key="frame" x="8" y="443.5" width="382" height="64.5"/>
<rect key="frame" x="8" y="441.5" width="382" height="64.5"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
<color key="textColor" name="Gray (dark)"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3Ga-UF-Cr7" customClass="EQNRoundedButton" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="8" y="516" width="382" height="40"/>
<rect key="frame" x="8" y="514" width="382" height="40"/>
<color key="backgroundColor" white="1" alpha="0.5" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="CLOSE">
<color key="titleColor" name="Gray (dark)"/>
@@ -1724,9 +1738,9 @@ Sisma rilevato da 10 smartphone</string>
</view>
</subviews>
<constraints>
<constraint firstItem="TfA-6E-CQc" firstAttribute="top" secondItem="aEH-vE-u7m" secondAttribute="top" constant="8" id="9GR-hr-g5x"/>
<constraint firstItem="TfA-6E-CQc" firstAttribute="top" secondItem="aEH-vE-u7m" secondAttribute="top" constant="4" id="9GR-hr-g5x"/>
<constraint firstAttribute="trailing" secondItem="TfA-6E-CQc" secondAttribute="trailing" constant="8" id="FWZ-RC-8Ed"/>
<constraint firstAttribute="bottom" secondItem="TfA-6E-CQc" secondAttribute="bottom" constant="8" id="fld-qW-XMS"/>
<constraint firstAttribute="bottom" secondItem="TfA-6E-CQc" secondAttribute="bottom" constant="4" id="fld-qW-XMS"/>
<constraint firstItem="TfA-6E-CQc" firstAttribute="leading" secondItem="aEH-vE-u7m" secondAttribute="leading" constant="8" id="r0r-m9-EiO"/>
</constraints>
</tableViewCellContentView>
@@ -1740,23 +1754,23 @@ Sisma rilevato da 10 smartphone</string>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="SeismicNotificationCell" rowHeight="180" id="vSa-gk-t22" customClass="AlertsSeismicNotificationCompactTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="768" width="414" height="180"/>
<rect key="frame" x="0.0" y="748" width="414" height="180"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="vSa-gk-t22" id="qvZ-sA-Sqc">
<rect key="frame" x="0.0" y="0.0" width="414" height="180"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1qM-9D-X99">
<rect key="frame" x="8" y="8" width="398" height="164"/>
<rect key="frame" x="8" y="4" width="398" height="172"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="No real time alert recently received by your smartphone" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="aqv-yY-TAs">
<rect key="frame" x="8" y="8" width="382" height="52"/>
<rect key="frame" x="8" y="8" width="382" height="60"/>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<color key="textColor" red="0.047058823529411764" green="0.62745098039215685" blue="0.13725490196078433" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="R9F-ba-WMK">
<rect key="frame" x="8" y="68" width="382" height="40"/>
<rect key="frame" x="8" y="76" width="382" height="40"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="BjK-4E-Vhw" customClass="EQNRoundedButton" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="187" height="40"/>
@@ -1784,7 +1798,7 @@ Sisma rilevato da 10 smartphone</string>
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="ETL-qq-Abj">
<rect key="frame" x="8" y="116" width="382" height="40"/>
<rect key="frame" x="8" y="124" width="382" height="40"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aAC-Wz-fKA" customClass="EQNRoundedButton" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="187" height="40"/>
@@ -1829,9 +1843,9 @@ Sisma rilevato da 10 smartphone</string>
</subviews>
<constraints>
<constraint firstItem="1qM-9D-X99" firstAttribute="leading" secondItem="qvZ-sA-Sqc" secondAttribute="leading" constant="8" id="WtF-6a-SVK"/>
<constraint firstItem="1qM-9D-X99" firstAttribute="top" secondItem="qvZ-sA-Sqc" secondAttribute="top" constant="8" id="Y64-c3-sAo"/>
<constraint firstItem="1qM-9D-X99" firstAttribute="top" secondItem="qvZ-sA-Sqc" secondAttribute="top" constant="4" id="Y64-c3-sAo"/>
<constraint firstAttribute="trailing" secondItem="1qM-9D-X99" secondAttribute="trailing" constant="8" id="hdC-k7-zpO"/>
<constraint firstAttribute="bottom" secondItem="1qM-9D-X99" secondAttribute="bottom" constant="8" id="zTd-fj-5on"/>
<constraint firstAttribute="bottom" secondItem="1qM-9D-X99" secondAttribute="bottom" constant="4" id="zTd-fj-5on"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
@@ -1839,15 +1853,15 @@ Sisma rilevato da 10 smartphone</string>
<outlet property="containerView" destination="1qM-9D-X99" id="Jdn-AN-6E2"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="PastEarthquakesCell" rowHeight="160" id="R3G-Bh-LLr" customClass="AlertsPastEartquakesTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="948" width="414" height="160"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="PastEarthquakesCell" rowHeight="150" id="R3G-Bh-LLr" customClass="AlertsPastEartquakesTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="928" width="414" height="150"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="R3G-Bh-LLr" id="UH4-vm-Tld">
<rect key="frame" x="0.0" y="0.0" width="414" height="160"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="150"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8aY-un-i0P">
<rect key="frame" x="8" y="8" width="398" height="144"/>
<rect key="frame" x="8" y="4" width="398" height="142"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Past seismic alerts" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="13" translatesAutoresizingMaskIntoConstraints="NO" id="qss-8q-f70" customClass="EQNEdgeInsetLabel" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="146" height="26"/>
@@ -1860,19 +1874,19 @@ Sisma rilevato da 10 smartphone</string>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" alignment="center" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="Wn0-ni-ud8">
<rect key="frame" x="134.5" y="34" width="129.5" height="54"/>
<rect key="frame" x="134.5" y="34" width="129.5" height="52"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="equalSpacing" alignment="center" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="0lY-aw-fec">
<rect key="frame" x="11.5" y="0.0" width="106.5" height="25"/>
<rect key="frame" x="11.5" y="0.0" width="106.5" height="24"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Last 24h:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hbH-vC-Yma">
<rect key="frame" x="0.0" y="0.0" width="89" height="25"/>
<rect key="frame" x="0.0" y="0.0" width="89" height="24"/>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<color key="textColor" name="Gray (dark)"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BRv-IS-2fA">
<rect key="frame" x="93" y="0.0" width="13.5" height="25"/>
<rect key="frame" x="93" y="0.0" width="13.5" height="24"/>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<color key="textColor" name="Gray (dark)"/>
<nil key="highlightedColor"/>
@@ -1880,16 +1894,16 @@ Sisma rilevato da 10 smartphone</string>
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" distribution="equalSpacing" alignment="center" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="0O0-8K-ugz">
<rect key="frame" x="0.0" y="29" width="129.5" height="25"/>
<rect key="frame" x="0.0" y="28" width="129.5" height="24"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Since 2013:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="l5q-I9-iOb">
<rect key="frame" x="0.0" y="0.0" width="112" height="25"/>
<rect key="frame" x="0.0" y="0.0" width="112" height="24"/>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<color key="textColor" name="Gray (dark)"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Lj5-Dk-elk">
<rect key="frame" x="116" y="0.0" width="13.5" height="25"/>
<rect key="frame" x="116" y="0.0" width="13.5" height="24"/>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<color key="textColor" name="Gray (dark)"/>
<nil key="highlightedColor"/>
@@ -1899,7 +1913,7 @@ Sisma rilevato da 10 smartphone</string>
</subviews>
</stackView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="o3D-zn-NCG" customClass="EQNRoundedButton" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="8" y="96" width="382" height="40"/>
<rect key="frame" x="8" y="94" width="382" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="I5V-bX-rod"/>
</constraints>
@@ -1925,9 +1939,9 @@ Sisma rilevato da 10 smartphone</string>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="8aY-un-i0P" secondAttribute="trailing" constant="8" id="2yY-fu-itO"/>
<constraint firstItem="8aY-un-i0P" firstAttribute="top" secondItem="UH4-vm-Tld" secondAttribute="top" constant="8" id="5GN-bB-iYo"/>
<constraint firstItem="8aY-un-i0P" firstAttribute="top" secondItem="UH4-vm-Tld" secondAttribute="top" constant="4" id="5GN-bB-iYo"/>
<constraint firstItem="8aY-un-i0P" firstAttribute="leading" secondItem="UH4-vm-Tld" secondAttribute="leading" constant="8" id="Ssf-8h-Vne"/>
<constraint firstAttribute="bottom" secondItem="8aY-un-i0P" secondAttribute="bottom" constant="8" id="TKD-Nq-ZzL"/>
<constraint firstAttribute="bottom" secondItem="8aY-un-i0P" secondAttribute="bottom" constant="4" id="TKD-Nq-ZzL"/>
<constraint firstItem="Wn0-ni-ud8" firstAttribute="centerX" secondItem="UH4-vm-Tld" secondAttribute="centerX" id="de2-X6-o8A"/>
</constraints>
</tableViewCellContentView>
@@ -1939,15 +1953,15 @@ Sisma rilevato da 10 smartphone</string>
<outlet property="mapButton" destination="o3D-zn-NCG" id="ffU-12-HOz"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="SmartphoneNetworkCell" rowHeight="180" id="YUf-dd-IFz" customClass="AlertsSmartphoneNetworkTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="1108" width="414" height="180"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="SmartphoneNetworkCell" rowHeight="170180" id="YUf-dd-IFz" customClass="AlertsSmartphoneNetworkTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="1078" width="414" height="170180"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="YUf-dd-IFz" id="BkM-63-VOb">
<rect key="frame" x="0.0" y="0.0" width="414" height="180"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="170180"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ahE-3v-miX">
<rect key="frame" x="8" y="8" width="398" height="164"/>
<rect key="frame" x="8" y="4" width="398" height="170172"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Smartphone network" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ngu-Uw-4wO" customClass="EQNEdgeInsetLabel" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="164.5" height="26"/>
@@ -1960,7 +1974,7 @@ Sisma rilevato da 10 smartphone</string>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="equalSpacing" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="niE-pg-jos">
<rect key="frame" x="8" y="42" width="382" height="66"/>
<rect key="frame" x="8" y="42" width="382" height="170074"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" tag="10" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r3y-EB-oyz">
<rect key="frame" x="0.0" y="0.0" width="382" height="30"/>
@@ -1972,7 +1986,7 @@ Sisma rilevato da 10 smartphone</string>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="smartphones are monitoring for earthquakes" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dnR-12-9yN">
<rect key="frame" x="0.0" y="43" width="382" height="23"/>
<rect key="frame" x="0.0" y="170051" width="382" height="23"/>
<fontDescription key="fontDescription" type="system" pointSize="19"/>
<color key="textColor" name="Gray (dark)"/>
<nil key="highlightedColor"/>
@@ -1980,7 +1994,7 @@ Sisma rilevato da 10 smartphone</string>
</subviews>
</stackView>
<button opaque="NO" tag="200" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Pkb-ih-spD" customClass="EQNRoundedButton" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="8" y="116" width="382" height="40"/>
<rect key="frame" x="8" y="170124" width="382" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="QAZ-gl-lSE"/>
</constraints>
@@ -2009,10 +2023,10 @@ Sisma rilevato da 10 smartphone</string>
</view>
</subviews>
<constraints>
<constraint firstItem="ahE-3v-miX" firstAttribute="top" secondItem="BkM-63-VOb" secondAttribute="top" constant="8" id="AYt-KW-TnW"/>
<constraint firstItem="ahE-3v-miX" firstAttribute="top" secondItem="BkM-63-VOb" secondAttribute="top" constant="4" id="AYt-KW-TnW"/>
<constraint firstItem="ahE-3v-miX" firstAttribute="leading" secondItem="BkM-63-VOb" secondAttribute="leading" constant="8" id="Liq-Qb-wtv"/>
<constraint firstAttribute="trailing" secondItem="ahE-3v-miX" secondAttribute="trailing" constant="8" id="X9g-dj-uHL"/>
<constraint firstAttribute="bottom" secondItem="ahE-3v-miX" secondAttribute="bottom" constant="8" id="XX4-4V-M4S"/>
<constraint firstAttribute="bottom" secondItem="ahE-3v-miX" secondAttribute="bottom" constant="4" id="XX4-4V-M4S"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
@@ -2022,14 +2036,14 @@ Sisma rilevato da 10 smartphone</string>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="PriorityCell" rowHeight="160" id="gXs-mo-UQM" customClass="AlertsPriorityServiceTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="1288" width="414" height="160"/>
<rect key="frame" x="0.0" y="171258" width="414" height="160"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="gXs-mo-UQM" id="ViI-oT-s00">
<rect key="frame" x="0.0" y="0.0" width="414" height="160"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="GF8-ah-qqT">
<rect key="frame" x="8" y="8" width="398" height="144"/>
<rect key="frame" x="8" y="4" width="398" height="152"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Priority service" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JeR-MS-yEq" customClass="EQNEdgeInsetLabel" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="117" height="26"/>
@@ -2042,7 +2056,7 @@ Sisma rilevato da 10 smartphone</string>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" verticalHuggingPriority="251" verticalCompressionResistancePriority="751" axis="vertical" distribution="equalSpacing" translatesAutoresizingMaskIntoConstraints="NO" id="zHS-h1-Tdo">
<rect key="frame" x="8" y="34" width="284" height="102"/>
<rect key="frame" x="8" y="34" width="284" height="110"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Be the first to be alerted when a quake is detected real time." textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1mF-xh-GVj">
<rect key="frame" x="0.0" y="0.0" width="284" height="42.5"/>
@@ -2051,7 +2065,7 @@ Sisma rilevato da 10 smartphone</string>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="A user has subscribed to the service only %d minute ago!" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3dQ-Eh-0Iw">
<rect key="frame" x="0.0" y="59.5" width="284" height="42.5"/>
<rect key="frame" x="0.0" y="67.5" width="284" height="42.5"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
<color key="textColor" name="Red"/>
<nil key="highlightedColor"/>
@@ -2066,7 +2080,7 @@ Sisma rilevato da 10 smartphone</string>
</constraints>
</imageView>
<button opaque="NO" tag="10" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Fko-1v-doJ">
<rect key="frame" x="296" y="24.5" width="94" height="95"/>
<rect key="frame" x="296" y="28.5" width="94" height="95"/>
<constraints>
<constraint firstAttribute="width" constant="94" id="f5j-RJ-bnc"/>
<constraint firstAttribute="height" constant="95" id="kBy-EW-KWq"/>
@@ -2091,8 +2105,8 @@ Sisma rilevato da 10 smartphone</string>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="GF8-ah-qqT" secondAttribute="trailing" constant="8" id="3R2-gt-38x"/>
<constraint firstAttribute="bottom" secondItem="GF8-ah-qqT" secondAttribute="bottom" constant="8" id="EFZ-HC-nHp"/>
<constraint firstItem="GF8-ah-qqT" firstAttribute="top" secondItem="ViI-oT-s00" secondAttribute="top" constant="8" id="Su7-uc-Way"/>
<constraint firstAttribute="bottom" secondItem="GF8-ah-qqT" secondAttribute="bottom" constant="4" id="EFZ-HC-nHp"/>
<constraint firstItem="GF8-ah-qqT" firstAttribute="top" secondItem="ViI-oT-s00" secondAttribute="top" constant="4" id="Su7-uc-Way"/>
<constraint firstItem="GF8-ah-qqT" firstAttribute="leading" secondItem="ViI-oT-s00" secondAttribute="leading" constant="8" id="vEU-lj-BhV"/>
</constraints>
</tableViewCellContentView>
@@ -2103,14 +2117,14 @@ Sisma rilevato da 10 smartphone</string>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="ProVersionCell" rowHeight="130" id="oTE-5k-bAN" customClass="EQNBaseTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="1448" width="414" height="130"/>
<rect key="frame" x="0.0" y="171418" width="414" height="130"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="oTE-5k-bAN" id="Axb-Lq-NhB">
<rect key="frame" x="0.0" y="0.0" width="414" height="130"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="GwC-Fx-oW5">
<rect key="frame" x="8" y="8" width="398" height="114"/>
<rect key="frame" x="8" y="4" width="398" height="122"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="PRO version" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xzn-UB-fHZ" customClass="EQNEdgeInsetLabel" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="95.5" height="26"/>
@@ -2123,13 +2137,13 @@ Sisma rilevato da 10 smartphone</string>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Convert your app into the PRO version! Find out how." textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FKw-uA-rrj">
<rect key="frame" x="8" y="34" width="274" height="72"/>
<rect key="frame" x="8" y="34" width="274" height="80"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
<color key="textColor" name="Gray (dark)"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="eq_icon_pro" translatesAutoresizingMaskIntoConstraints="NO" id="FtR-zF-azV">
<rect key="frame" x="290" y="8" width="100" height="98"/>
<rect key="frame" x="290" y="8" width="100" height="106"/>
<constraints>
<constraint firstAttribute="height" constant="100" id="TdU-tN-yRU"/>
<constraint firstAttribute="width" constant="100" id="uf4-y9-X0f"/>
@@ -2153,9 +2167,9 @@ Sisma rilevato da 10 smartphone</string>
</subviews>
<constraints>
<constraint firstItem="GwC-Fx-oW5" firstAttribute="leading" secondItem="Axb-Lq-NhB" secondAttribute="leading" constant="8" id="d76-Ro-N7g"/>
<constraint firstAttribute="bottom" secondItem="GwC-Fx-oW5" secondAttribute="bottom" constant="8" id="gfC-Rd-omx"/>
<constraint firstAttribute="bottom" secondItem="GwC-Fx-oW5" secondAttribute="bottom" constant="4" id="gfC-Rd-omx"/>
<constraint firstAttribute="trailing" secondItem="GwC-Fx-oW5" secondAttribute="trailing" constant="8" id="ins-7n-mgr"/>
<constraint firstItem="GwC-Fx-oW5" firstAttribute="top" secondItem="Axb-Lq-NhB" secondAttribute="top" constant="8" id="xic-gi-AVe"/>
<constraint firstItem="GwC-Fx-oW5" firstAttribute="top" secondItem="Axb-Lq-NhB" secondAttribute="top" constant="4" id="xic-gi-AVe"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
@@ -2163,15 +2177,15 @@ Sisma rilevato da 10 smartphone</string>
<outlet property="containerView" destination="GwC-Fx-oW5" id="WJ0-hI-evI"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="PositionDataCell" rowHeight="180" id="j9i-Sk-o3g" customClass="AlertsPositionDataTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="1578" width="414" height="180"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="PositionDataCell" rowHeight="170" id="j9i-Sk-o3g" customClass="AlertsPositionDataTableViewCell" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="171548" width="414" height="170"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="j9i-Sk-o3g" id="sTW-Bj-7Bz">
<rect key="frame" x="0.0" y="0.0" width="414" height="180"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="170"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6ZO-bn-4Ts">
<rect key="frame" x="8" y="8" width="398" height="164"/>
<rect key="frame" x="8" y="4" width="398" height="162"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Location data" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Fad-hA-QMI" customClass="EQNEdgeInsetLabel" customModule="Earthquake_Network" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="106" height="26"/>
@@ -2184,7 +2198,7 @@ Sisma rilevato da 10 smartphone</string>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="equalSpacing" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="Da7-5h-Ygg">
<rect key="frame" x="8" y="34" width="382" height="122"/>
<rect key="frame" x="8" y="34" width="382" height="120"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="FuC-We-4gX">
<rect key="frame" x="0.0" y="0.0" width="382" height="30"/>
@@ -2205,7 +2219,7 @@ Sisma rilevato da 10 smartphone</string>
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="jet-Ib-N0B">
<rect key="frame" x="0.0" y="46" width="382" height="30"/>
<rect key="frame" x="0.0" y="45" width="382" height="30"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="sunrise" translatesAutoresizingMaskIntoConstraints="NO" id="AvA-JA-qjr">
<rect key="frame" x="0.0" y="0.0" width="30" height="30"/>
@@ -2223,7 +2237,7 @@ Sisma rilevato da 10 smartphone</string>
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="Fw9-DV-pub">
<rect key="frame" x="0.0" y="92" width="382" height="30"/>
<rect key="frame" x="0.0" y="90" width="382" height="30"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="sunset" translatesAutoresizingMaskIntoConstraints="NO" id="JSz-gM-Yu0">
<rect key="frame" x="0.0" y="0.0" width="30" height="30"/>
@@ -2256,10 +2270,10 @@ Sisma rilevato da 10 smartphone</string>
</view>
</subviews>
<constraints>
<constraint firstItem="6ZO-bn-4Ts" firstAttribute="top" secondItem="sTW-Bj-7Bz" secondAttribute="top" constant="8" id="63V-lx-Cyl"/>
<constraint firstItem="6ZO-bn-4Ts" firstAttribute="top" secondItem="sTW-Bj-7Bz" secondAttribute="top" constant="4" id="63V-lx-Cyl"/>
<constraint firstItem="6ZO-bn-4Ts" firstAttribute="leading" secondItem="sTW-Bj-7Bz" secondAttribute="leading" constant="8" id="YWj-t9-fKM"/>
<constraint firstAttribute="trailing" secondItem="6ZO-bn-4Ts" secondAttribute="trailing" constant="8" id="ZtM-qc-3FF"/>
<constraint firstAttribute="bottom" secondItem="6ZO-bn-4Ts" secondAttribute="bottom" constant="8" id="sJw-h3-W1G"/>
<constraint firstAttribute="bottom" secondItem="6ZO-bn-4Ts" secondAttribute="bottom" constant="4" id="sJw-h3-W1G"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
@@ -2335,8 +2349,10 @@ Sisma rilevato da 10 smartphone</string>
<image name="tabbar-icon-networks" width="25" height="25"/>
<image name="tabbar-icon-reports" width="25" height="25"/>
<image name="tabbar-icon-settings" width="25" height="25"/>
<image name="telegram_icon" width="100" height="100"/>
<image name="top_100k" width="97.5" height="30"/>
<image name="top_10k" width="86" height="26.5"/>
<image name="twitter_icon" width="100" height="100"/>
<image name="world_old" width="42" height="42"/>
<namedColor name="Gray (dark)">
<color red="0.10980392156862745" green="0.13333333333333333" blue="0.14901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+9 -2
View File
@@ -16,6 +16,7 @@ class AppTheme: NSObject {
static let lightBlue = UIColor(named: "Light blue")!
static let red = UIColor(named: "Red")!
static let green = UIColor(named: "Green")!
static let gray = UIColor(named: "Gray")!
static let darkGray = UIColor(named: "Gray (dark)")!
}
@@ -28,6 +29,12 @@ class AppTheme: NSObject {
/// Color used for label that contains value (ex. in settings page)
var valueColor: UIColor = .blue
var borderWidth: CGFloat = 1.0
var borderCornerRadius: CGFloat = 4.0
/// Border color for button (needed only for @objc interoperability)
var buttonBorderColor = AppTheme.Colors.gray
/// Border with for button
var buttonBorderWidth: CGFloat = 1.0
/// Corner radius for button
var buttonCornerRadius: CGFloat = 10.0
/// Corner radius for cards
var cardCornerRadius: CGFloat = 4.0
}
@@ -21,7 +21,7 @@ class EQNBaseTableViewCell: UITableViewCell {
clipsToBounds = true
// rounded corners
containerView.layer.cornerRadius = AppTheme.shared.borderCornerRadius
containerView.layer.cornerRadius = AppTheme.shared.cardCornerRadius
containerView.layer.masksToBounds = false
// apply a shadow to the container view
@@ -26,9 +26,9 @@ class EQNRoundedButton: UIButton {
private func setupUI() {
layer.masksToBounds = true
layer.borderWidth = AppTheme.shared.borderWidth
layer.borderColor = AppTheme.Colors.darkGray.cgColor
layer.cornerRadius = AppTheme.shared.borderCornerRadius
layer.borderWidth = AppTheme.shared.buttonBorderWidth
layer.borderColor = AppTheme.Colors.gray.cgColor
layer.cornerRadius = AppTheme.shared.buttonCornerRadius
setTitle(titleLabel?.text?.uppercased(), for: .normal)
}