Initial progress on 01-Storm-Viewer

This commit is contained in:
CypherPoet 2019-01-13 02:06:51 -05:00
parent 398aead0fe
commit 419ec06cc9
22 changed files with 815 additions and 0 deletions

3
.gitignore vendored
View File

@ -1,3 +1,5 @@
.DS_Store
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
@ -79,3 +81,4 @@ iOSInjectionProject/
private/

View File

@ -0,0 +1,391 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
F3B5E2DD21E8402000D48258 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3B5E2DC21E8402000D48258 /* AppDelegate.swift */; };
F3B5E2DF21E8402000D48258 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3B5E2DE21E8402000D48258 /* ViewController.swift */; };
F3B5E2E221E8402000D48258 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E2E021E8402000D48258 /* Main.storyboard */; };
F3B5E2E421E8402200D48258 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E2E321E8402200D48258 /* Assets.xcassets */; };
F3B5E2E721E8402200D48258 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E2E521E8402200D48258 /* LaunchScreen.storyboard */; };
F3B5E30E21E923F700D48258 /* nssl0049.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E30421E923F700D48258 /* nssl0049.jpg */; };
F3B5E30F21E923F700D48258 /* nssl0046.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E30521E923F700D48258 /* nssl0046.jpg */; };
F3B5E31021E923F700D48258 /* nssl0091.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E30621E923F700D48258 /* nssl0091.jpg */; };
F3B5E31121E923F700D48258 /* nssl0045.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E30721E923F700D48258 /* nssl0045.jpg */; };
F3B5E31221E923F700D48258 /* nssl0051.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E30821E923F700D48258 /* nssl0051.jpg */; };
F3B5E31321E923F700D48258 /* nssl0041.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E30921E923F700D48258 /* nssl0041.jpg */; };
F3B5E31421E923F700D48258 /* nssl0042.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E30A21E923F700D48258 /* nssl0042.jpg */; };
F3B5E31521E923F700D48258 /* nssl0043.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E30B21E923F700D48258 /* nssl0043.jpg */; };
F3B5E31621E923F700D48258 /* nssl0033.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E30C21E923F700D48258 /* nssl0033.jpg */; };
F3B5E31721E923F700D48258 /* nssl0034.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F3B5E30D21E923F700D48258 /* nssl0034.jpg */; };
F3B5E31921EA80F500D48258 /* DetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3B5E31821EA80F400D48258 /* DetailViewController.swift */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
F3B5E2D921E8402000D48258 /* Storm Viewer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Storm Viewer.app"; sourceTree = BUILT_PRODUCTS_DIR; };
F3B5E2DC21E8402000D48258 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
F3B5E2DE21E8402000D48258 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
F3B5E2E121E8402000D48258 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
F3B5E2E321E8402200D48258 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
F3B5E2E621E8402200D48258 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
F3B5E2E821E8402200D48258 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
F3B5E30421E923F700D48258 /* nssl0049.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = nssl0049.jpg; sourceTree = "<group>"; };
F3B5E30521E923F700D48258 /* nssl0046.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = nssl0046.jpg; sourceTree = "<group>"; };
F3B5E30621E923F700D48258 /* nssl0091.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = nssl0091.jpg; sourceTree = "<group>"; };
F3B5E30721E923F700D48258 /* nssl0045.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = nssl0045.jpg; sourceTree = "<group>"; };
F3B5E30821E923F700D48258 /* nssl0051.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = nssl0051.jpg; sourceTree = "<group>"; };
F3B5E30921E923F700D48258 /* nssl0041.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = nssl0041.jpg; sourceTree = "<group>"; };
F3B5E30A21E923F700D48258 /* nssl0042.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = nssl0042.jpg; sourceTree = "<group>"; };
F3B5E30B21E923F700D48258 /* nssl0043.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = nssl0043.jpg; sourceTree = "<group>"; };
F3B5E30C21E923F700D48258 /* nssl0033.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = nssl0033.jpg; sourceTree = "<group>"; };
F3B5E30D21E923F700D48258 /* nssl0034.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = nssl0034.jpg; sourceTree = "<group>"; };
F3B5E31821EA80F400D48258 /* DetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailViewController.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
F3B5E2D621E8402000D48258 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
F3B5E2D021E8402000D48258 = {
isa = PBXGroup;
children = (
F3B5E2DB21E8402000D48258 /* Storm Viewer */,
F3B5E2DA21E8402000D48258 /* Products */,
);
sourceTree = "<group>";
};
F3B5E2DA21E8402000D48258 /* Products */ = {
isa = PBXGroup;
children = (
F3B5E2D921E8402000D48258 /* Storm Viewer.app */,
);
name = Products;
sourceTree = "<group>";
};
F3B5E2DB21E8402000D48258 /* Storm Viewer */ = {
isa = PBXGroup;
children = (
F3B5E2DC21E8402000D48258 /* AppDelegate.swift */,
F3B5E2DE21E8402000D48258 /* ViewController.swift */,
F3B5E31821EA80F400D48258 /* DetailViewController.swift */,
F3B5E2E021E8402000D48258 /* Main.storyboard */,
F3B5E2E321E8402200D48258 /* Assets.xcassets */,
F3B5E2E521E8402200D48258 /* LaunchScreen.storyboard */,
F3B5E2E821E8402200D48258 /* Info.plist */,
F3B5E30321E923F700D48258 /* Content */,
);
path = "Storm Viewer";
sourceTree = "<group>";
};
F3B5E30321E923F700D48258 /* Content */ = {
isa = PBXGroup;
children = (
F3B5E30421E923F700D48258 /* nssl0049.jpg */,
F3B5E30521E923F700D48258 /* nssl0046.jpg */,
F3B5E30621E923F700D48258 /* nssl0091.jpg */,
F3B5E30721E923F700D48258 /* nssl0045.jpg */,
F3B5E30821E923F700D48258 /* nssl0051.jpg */,
F3B5E30921E923F700D48258 /* nssl0041.jpg */,
F3B5E30A21E923F700D48258 /* nssl0042.jpg */,
F3B5E30B21E923F700D48258 /* nssl0043.jpg */,
F3B5E30C21E923F700D48258 /* nssl0033.jpg */,
F3B5E30D21E923F700D48258 /* nssl0034.jpg */,
);
path = Content;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
F3B5E2D821E8402000D48258 /* Storm Viewer */ = {
isa = PBXNativeTarget;
buildConfigurationList = F3B5E2EB21E8402200D48258 /* Build configuration list for PBXNativeTarget "Storm Viewer" */;
buildPhases = (
F3B5E2D521E8402000D48258 /* Sources */,
F3B5E2D621E8402000D48258 /* Frameworks */,
F3B5E2D721E8402000D48258 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "Storm Viewer";
productName = "Storm Viewer";
productReference = F3B5E2D921E8402000D48258 /* Storm Viewer.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
F3B5E2D121E8402000D48258 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1010;
LastUpgradeCheck = 1010;
ORGANIZATIONNAME = "Brian Sipple";
TargetAttributes = {
F3B5E2D821E8402000D48258 = {
CreatedOnToolsVersion = 10.1;
};
};
};
buildConfigurationList = F3B5E2D421E8402000D48258 /* Build configuration list for PBXProject "Storm Viewer" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = F3B5E2D021E8402000D48258;
productRefGroup = F3B5E2DA21E8402000D48258 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
F3B5E2D821E8402000D48258 /* Storm Viewer */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
F3B5E2D721E8402000D48258 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F3B5E30F21E923F700D48258 /* nssl0046.jpg in Resources */,
F3B5E31621E923F700D48258 /* nssl0033.jpg in Resources */,
F3B5E31221E923F700D48258 /* nssl0051.jpg in Resources */,
F3B5E31021E923F700D48258 /* nssl0091.jpg in Resources */,
F3B5E31521E923F700D48258 /* nssl0043.jpg in Resources */,
F3B5E31721E923F700D48258 /* nssl0034.jpg in Resources */,
F3B5E30E21E923F700D48258 /* nssl0049.jpg in Resources */,
F3B5E31321E923F700D48258 /* nssl0041.jpg in Resources */,
F3B5E31421E923F700D48258 /* nssl0042.jpg in Resources */,
F3B5E2E721E8402200D48258 /* LaunchScreen.storyboard in Resources */,
F3B5E2E421E8402200D48258 /* Assets.xcassets in Resources */,
F3B5E31121E923F700D48258 /* nssl0045.jpg in Resources */,
F3B5E2E221E8402000D48258 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
F3B5E2D521E8402000D48258 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F3B5E31921EA80F500D48258 /* DetailViewController.swift in Sources */,
F3B5E2DF21E8402000D48258 /* ViewController.swift in Sources */,
F3B5E2DD21E8402000D48258 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
F3B5E2E021E8402000D48258 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
F3B5E2E121E8402000D48258 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
F3B5E2E521E8402200D48258 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
F3B5E2E621E8402200D48258 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
F3B5E2E921E8402200D48258 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
F3B5E2EA21E8402200D48258 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
F3B5E2EC21E8402200D48258 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = "Storm Viewer/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "io.sipple.Storm-Viewer";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
F3B5E2ED21E8402200D48258 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = "Storm Viewer/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "io.sipple.Storm-Viewer";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
F3B5E2D421E8402000D48258 /* Build configuration list for PBXProject "Storm Viewer" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F3B5E2E921E8402200D48258 /* Debug */,
F3B5E2EA21E8402200D48258 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F3B5E2EB21E8402200D48258 /* Build configuration list for PBXNativeTarget "Storm Viewer" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F3B5E2EC21E8402200D48258 /* Debug */,
F3B5E2ED21E8402200D48258 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = F3B5E2D121E8402000D48258 /* Project object */;
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:Storm Viewer.xcodeproj">
</FileRef>
</Workspace>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,45 @@
//
// AppDelegate.swift
// Storm Viewer
//
// Created by Brian Sipple on 1/10/19.
// Copyright © 2019 Brian Sipple. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}

View File

@ -0,0 +1,98 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>

View File

@ -0,0 +1,99 @@
<?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="MeA-Tm-wx6">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="L3B-b1-fr2">
<objects>
<tableViewController id="ISS-rM-bMm" customClass="ViewController" customModule="Storm_Viewer" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" id="BvP-Dh-HpZ">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="Picture" textLabel="qem-fj-5MQ" style="IBUITableViewCellStyleDefault" id="cr7-Lh-RQP">
<rect key="frame" x="0.0" y="28" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="cr7-Lh-RQP" id="iCp-08-NKl">
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="qem-fj-5MQ">
<rect key="frame" x="16" y="0.0" width="343" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</tableViewCellContentView>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="ISS-rM-bMm" id="tbW-Ml-2tn"/>
<outlet property="delegate" destination="ISS-rM-bMm" id="hG9-hW-bLd"/>
</connections>
</tableView>
<navigationItem key="navigationItem" id="ADq-xD-5ic"/>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="HKl-H7-0p3" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="980" y="26.53673163418291"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="vWb-VF-awD">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="MeA-Tm-wx6" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="ejZ-iK-ecJ">
<rect key="frame" x="0.0" y="20" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="ISS-rM-bMm" kind="relationship" relationship="rootViewController" id="YhH-Vr-6oJ"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Sje-Uw-DS7" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="40.799999999999997" y="-671.51424287856082"/>
</scene>
<!--Detail View Controller-->
<scene sceneID="oIt-cV-HL4">
<objects>
<viewController storyboardIdentifier="Image Detail" id="CPB-R6-9Cf" customClass="DetailViewController" customModule="Storm_Viewer" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="GBY-9N-YdR">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="XEW-Lo-AqF">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="XEW-Lo-AqF" firstAttribute="leading" secondItem="GBY-9N-YdR" secondAttribute="leading" id="Rrr-Ib-fgB"/>
<constraint firstItem="XEW-Lo-AqF" firstAttribute="top" secondItem="GBY-9N-YdR" secondAttribute="top" id="fhq-mS-UKb"/>
<constraint firstItem="XEW-Lo-AqF" firstAttribute="bottom" secondItem="XzG-2q-tKh" secondAttribute="bottom" id="rFn-Ho-Mml"/>
<constraint firstAttribute="trailing" secondItem="XEW-Lo-AqF" secondAttribute="trailing" id="tAb-Tf-8eg"/>
</constraints>
<viewLayoutGuide key="safeArea" id="XzG-2q-tKh"/>
</view>
<connections>
<outlet property="imageView" destination="XEW-Lo-AqF" id="XzE-xQ-8al"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="3mE-fN-JfB" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1964" y="44.527736131934034"/>
</scene>
</scenes>
</document>

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -0,0 +1,35 @@
//
// DetailViewController.swift
// Storm Viewer
//
// Created by Brian Sipple on 1/12/19.
// Copyright © 2019 Brian Sipple. All rights reserved.
//
import UIKit
class DetailViewController: UIViewController {
@IBOutlet var imageView: UIImageView!
var imagePath: String?
override func viewDidLoad() {
super.viewDidLoad()
if let _imagePath = imagePath {
imageView.image = UIImage(named: _imagePath)
}
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}

View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>

View File

@ -0,0 +1,53 @@
//
// ViewController.swift
// Storm Viewer
//
// Created by Brian Sipple on 1/10/19.
// Copyright © 2019 Brian Sipple. All rights reserved.
//
import UIKit
class ViewController: UITableViewController {
var imagePaths = [String]()
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let fm = FileManager.default
let path = Bundle.main.resourcePath!
let images = try! fm.contentsOfDirectory(atPath: path)
imagePaths = images.filter({ $0.hasPrefix("nssl") })
print(imagePaths)
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return imagePaths.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "Picture", for: indexPath)
cell.textLabel?.text = imagePaths[indexPath.row]
return cell
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
// try loading the "Detail" view controller and typecasting it to be DetailViewController
if let detailViewController = storyboard?.instantiateViewController(withIdentifier: "Image Detail") as? DetailViewController {
// set the vc's `imagePath` property to match the image selected
detailViewController.imagePath = imagePaths[indexPath.row]
// push the detail vc onto the naviation controller
navigationController?.pushViewController(detailViewController, animated: true)
}
}
}