From 0d9c0f4df685b7d7c9c7842daee9a682aa706b41 Mon Sep 17 00:00:00 2001 From: Max Sokolov Date: Sun, 8 Nov 2015 15:34:35 +0300 Subject: [PATCH] added tablet sources, xcode demo project setup --- Tablet/Tablet.swift | 386 ++++++++++++++++++ .../TabletDemo.xcodeproj/project.pbxproj | 306 ++++++++++++++ .../contents.xcworkspacedata | 7 + .../UserInterfaceState.xcuserstate | Bin 0 -> 12263 bytes .../xcschemes/TabletDemo.xcscheme | 91 +++++ .../xcschemes/xcschememanagement.plist | 22 + TabletDemo/TabletDemo/AppDelegate.swift | 46 +++ .../AppIcon.appiconset/Contents.json | 38 ++ .../Base.lproj/LaunchScreen.storyboard | 27 ++ .../TabletDemo/Base.lproj/Main.storyboard | 25 ++ TabletDemo/TabletDemo/Info.plist | 38 ++ TabletDemo/TabletDemo/ViewController.swift | 25 ++ 12 files changed, 1011 insertions(+) create mode 100644 Tablet/Tablet.swift create mode 100644 TabletDemo/TabletDemo.xcodeproj/project.pbxproj create mode 100644 TabletDemo/TabletDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 TabletDemo/TabletDemo.xcodeproj/project.xcworkspace/xcuserdata/maxsokolov.xcuserdatad/UserInterfaceState.xcuserstate create mode 100644 TabletDemo/TabletDemo.xcodeproj/xcuserdata/maxsokolov.xcuserdatad/xcschemes/TabletDemo.xcscheme create mode 100644 TabletDemo/TabletDemo.xcodeproj/xcuserdata/maxsokolov.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 TabletDemo/TabletDemo/AppDelegate.swift create mode 100644 TabletDemo/TabletDemo/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 TabletDemo/TabletDemo/Base.lproj/LaunchScreen.storyboard create mode 100644 TabletDemo/TabletDemo/Base.lproj/Main.storyboard create mode 100644 TabletDemo/TabletDemo/Info.plist create mode 100644 TabletDemo/TabletDemo/ViewController.swift diff --git a/Tablet/Tablet.swift b/Tablet/Tablet.swift new file mode 100644 index 0000000..cb9b68b --- /dev/null +++ b/Tablet/Tablet.swift @@ -0,0 +1,386 @@ +// +// Copyright (c) 2015 Max Sokolov https://twitter.com/max_sokolov +// +// Permission is hereby granted, free of charge, to any person obtaining a copy of +// this software and associated documentation files (the "Software"), to deal in +// the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do so, +// subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +import UIKit +import Foundation + +internal let kActionPerformedNotificationKey = "_action" + +/** + Built in actions that Tablet provides. +*/ +public enum ActionType : String { + + case click = "_click" + case select = "_select" + case deselect = "_deselect" + case configure = "_configure" + case willDisplay = "_willDisplay" +} + +public struct ActionData { + + public let cell: C + public let item: I + public let itemIndex: Int + public let indexPath: NSIndexPath + + init(cell: C, indexPath: NSIndexPath, item: I, itemIndex: Int) { + + self.cell = cell + self.indexPath = indexPath + self.item = item + self.itemIndex = itemIndex + } +} + +public class Action { + + public let cell: UITableViewCell + public let key: String + public let userInfo: [NSObject: AnyObject]? + + public init(key: String, sender: UITableViewCell, userInfo: [NSObject: AnyObject]? = nil) { + self.key = key + self.cell = sender + self.userInfo = userInfo + } + + public func trigger() { + + NSNotificationCenter.defaultCenter().postNotificationName(kActionPerformedNotificationKey, object: self) + } +} + +/** + If you want to delegate your cell configuration logic to cell itself (with your view model or even model) than + just provide an implementation of this protocol for your cell. Enjoy strong typisation. +*/ +public protocol ConfigurableCell { + + typealias Item + + static func reusableIdentifier() -> String + func configureWithItem(item: Item) +} + +/** + A protocol that every row builder should follow. + A certain section can only works with row builders that respect this protocol. +*/ +public protocol ReusableRowBuilder { + + var numberOfRows: Int { get } + var reusableIdentifier: String { get } + + func triggerAction(key: String, cell: UITableViewCell, indexPath: NSIndexPath, itemIndex: Int) -> Bool +} + +/** + A class that responsible for building cells of given type and passing items to them. +*/ +public class TableRowBuilder : ReusableRowBuilder { + + public typealias TableRowBuilderActionBlock = (data: ActionData) -> Void + + private var actions = Dictionary() + private var items = [I]() + + public var reusableIdentifier: String + public var numberOfRows: Int { + get { + return items.count + } + } + + public init(item: I, id: String) { + + reusableIdentifier = id + items.append(item) + } + + public init(items: [I]? = nil, id: String) { + + reusableIdentifier = id + + if items != nil { + self.items.appendContentsOf(items!) + } + } + + public func appendItems(items: [I]) { + + self.items.appendContentsOf(items) + } + + public func clear() { + + items.removeAll() + } + + // MARK: Chaining actions + + public func action(key: String, action: TableRowBuilderActionBlock) -> Self { + + actions[key] = action + return self + } + + public func action(key: ActionType, action: TableRowBuilderActionBlock) -> Self { + + actions[key.rawValue] = action + return self + } + + // MARK: Triggers + + public func triggerAction(key: String, cell: UITableViewCell, indexPath: NSIndexPath, itemIndex: Int) -> Bool { + + let actionData = ActionData(cell: cell as! C, indexPath: indexPath, item: items[itemIndex], itemIndex: itemIndex) + + if let block = actions[key] { + block(data: actionData) + return true + } + return false + } +} + +/** + A class that responsible for building configurable cells of given type and passing items to them. +*/ +public class TableConfigurableRowBuilder : TableRowBuilder { + + public init(item: I) { + super.init(item: item, id: C.reusableIdentifier()) + } + + public init(items: [I]? = nil) { + super.init(items: items, id: C.reusableIdentifier()) + } + + public override func triggerAction(key: String, cell: UITableViewCell, indexPath: NSIndexPath, itemIndex: Int) -> Bool { + + (cell as! C).configureWithItem(items[itemIndex]) + + return super.triggerAction(key, cell: cell, indexPath: indexPath, itemIndex: itemIndex) + } +} + +/** + A class that responsible for building a certain table view section. +*/ +public class TableSectionBuilder { + + private var builders = [ReusableRowBuilder]() + + public var headerTitle: String? + public var footerTitle: String? + + public var headerView: UIView? + public var headerHeight: CGFloat = UITableViewAutomaticDimension + + public var footerView: UIView? + public var footerHeight: CGFloat = UITableViewAutomaticDimension + + /// A total number of rows in section of each row builder. + public var numberOfRowsInSection: Int { + + var number = 0 + for builder in builders { + number += builder.numberOfRows + } + return number + } + + public init(headerTitle: String? = nil, footerTitle: String? = nil, rowBuilders: [ReusableRowBuilder]? = nil) { + + self.headerTitle = headerTitle + self.footerTitle = footerTitle + + if let initialRows = rowBuilders { + self.builders.appendContentsOf(initialRows) + } + } + + public init(headerView: UIView? = nil, headerHeight: CGFloat = UITableViewAutomaticDimension, footerView: UIView? = nil, footerHeight: CGFloat = UITableViewAutomaticDimension) { + + self.headerView = headerView + self.headerHeight = headerHeight + + self.footerView = footerView + self.footerHeight = footerHeight + } + + internal func builderAtIndex(var index: Int) -> (ReusableRowBuilder, Int)? { + + for builder in builders { + if index < builder.numberOfRows { + return (builder, index) + } + index -= builder.numberOfRows + } + + return nil + } +} + +/** + A class that actualy handles table view's datasource and delegate. +*/ +public class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate { + + private weak var tableView: UITableView! + private var sections = [TableSectionBuilder]() + + public init(tableView: UITableView) { + super.init() + + self.tableView = tableView + self.tableView.delegate = self + self.tableView.dataSource = self + + NSNotificationCenter.defaultCenter().addObserver(self, selector: "didReceiveAction:", name: kActionPerformedNotificationKey, object: nil) + } + + deinit { + + NSNotificationCenter.defaultCenter().removeObserver(self) + } + + // MARK: Public methods + + public func appendSection(section: TableSectionBuilder) { + sections.append(section) + } + + public func appendSections(sections: [TableSectionBuilder]) { + self.sections.appendContentsOf(sections) + } + + // MARK: Private methods + + /** + Find a row builder that responsible for building a row from cell with given item type. + + - Parameters: + - indexPath: path of cell to dequeue + + - Returns: A touple - (builder, builderItemIndex) + */ + private func builderAtIndexPath(indexPath: NSIndexPath) -> (ReusableRowBuilder, Int) { + + return sections[indexPath.section].builderAtIndex(indexPath.row)! + } + + private func triggerAction(action: ActionType, cell: UITableViewCell?, indexPath: NSIndexPath) -> Bool { + + let builder = builderAtIndexPath(indexPath) + return builder.0.triggerAction(action.rawValue, cell: cell!, indexPath: indexPath, itemIndex: builder.1) + } + + internal func didReceiveAction(notification: NSNotification) { + + if let action = notification.object as? Action, + indexPath = tableView.indexPathForCell(action.cell) { + + let builder = builderAtIndexPath(indexPath) + builder.0.triggerAction(action.key, cell: action.cell, indexPath: indexPath, itemIndex: builder.1) + } + } + + // MARK: UITableViewDataSource - configuration + + public func numberOfSectionsInTableView(tableView: UITableView) -> Int { + + return sections.count + } + + public func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + + return sections[section].numberOfRowsInSection + } + + public func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { + + let builder = builderAtIndexPath(indexPath) + let cell = tableView.dequeueReusableCellWithIdentifier(builder.0.reusableIdentifier, forIndexPath: indexPath) + + builder.0.triggerAction(ActionType.configure.rawValue, cell: cell, indexPath: indexPath, itemIndex: builder.1) + + return cell + } + + // MARK: UITableViewDataSource - section setup + + public func tableView(tableView: UITableView, titleForHeaderInSection section: Int) -> String? { + + return sections[section].headerTitle + } + + public func tableView(tableView: UITableView, titleForFooterInSection section: Int) -> String? { + + return sections[section].footerTitle + } + + // MARK: UITableViewDelegate - section setup + + public func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { + + return sections[section].headerView + } + + public func tableView(tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { + + return sections[section].footerView + } + + public func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { + + return sections[section].headerHeight + } + + public func tableView(tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { + + return sections[section].footerHeight + } + + // MARK: UITableViewDelegate - actions + + public func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { + + let cell = tableView.cellForRowAtIndexPath(indexPath) + if triggerAction(.click, cell: cell, indexPath: indexPath) { + tableView.deselectRowAtIndexPath(indexPath, animated: true) + } else { + triggerAction(.select, cell: cell, indexPath: indexPath) + } + } + + public func tableView(tableView: UITableView, didDeselectRowAtIndexPath indexPath: NSIndexPath) { + + triggerAction(.deselect, cell: tableView.cellForRowAtIndexPath(indexPath), indexPath: indexPath) + } + + public func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) { + + triggerAction(.willDisplay, cell: cell, indexPath: indexPath) + } +} \ No newline at end of file diff --git a/TabletDemo/TabletDemo.xcodeproj/project.pbxproj b/TabletDemo/TabletDemo.xcodeproj/project.pbxproj new file mode 100644 index 0000000..1c74af6 --- /dev/null +++ b/TabletDemo/TabletDemo.xcodeproj/project.pbxproj @@ -0,0 +1,306 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + DAB7EB2B1BEF787300D2AD5E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAB7EB2A1BEF787300D2AD5E /* AppDelegate.swift */; }; + DAB7EB2D1BEF787300D2AD5E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAB7EB2C1BEF787300D2AD5E /* ViewController.swift */; }; + DAB7EB301BEF787300D2AD5E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DAB7EB2E1BEF787300D2AD5E /* Main.storyboard */; }; + DAB7EB321BEF787300D2AD5E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DAB7EB311BEF787300D2AD5E /* Assets.xcassets */; }; + DAB7EB351BEF787300D2AD5E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DAB7EB331BEF787300D2AD5E /* LaunchScreen.storyboard */; }; + DAB7EB3E1BEF78A400D2AD5E /* Tablet.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAB7EB3D1BEF78A400D2AD5E /* Tablet.swift */; settings = {ASSET_TAGS = (); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + DAB7EB271BEF787300D2AD5E /* TabletDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TabletDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; + DAB7EB2A1BEF787300D2AD5E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + DAB7EB2C1BEF787300D2AD5E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + DAB7EB2F1BEF787300D2AD5E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + DAB7EB311BEF787300D2AD5E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + DAB7EB341BEF787300D2AD5E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + DAB7EB361BEF787300D2AD5E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + DAB7EB3D1BEF78A400D2AD5E /* Tablet.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Tablet.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + DAB7EB241BEF787300D2AD5E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + DAB7EB1E1BEF787300D2AD5E = { + isa = PBXGroup; + children = ( + DAB7EB3C1BEF789500D2AD5E /* Tablet */, + DAB7EB291BEF787300D2AD5E /* TabletDemo */, + DAB7EB281BEF787300D2AD5E /* Products */, + ); + sourceTree = ""; + }; + DAB7EB281BEF787300D2AD5E /* Products */ = { + isa = PBXGroup; + children = ( + DAB7EB271BEF787300D2AD5E /* TabletDemo.app */, + ); + name = Products; + sourceTree = ""; + }; + DAB7EB291BEF787300D2AD5E /* TabletDemo */ = { + isa = PBXGroup; + children = ( + DAB7EB2A1BEF787300D2AD5E /* AppDelegate.swift */, + DAB7EB2C1BEF787300D2AD5E /* ViewController.swift */, + DAB7EB2E1BEF787300D2AD5E /* Main.storyboard */, + DAB7EB311BEF787300D2AD5E /* Assets.xcassets */, + DAB7EB331BEF787300D2AD5E /* LaunchScreen.storyboard */, + DAB7EB361BEF787300D2AD5E /* Info.plist */, + ); + path = TabletDemo; + sourceTree = ""; + }; + DAB7EB3C1BEF789500D2AD5E /* Tablet */ = { + isa = PBXGroup; + children = ( + DAB7EB3D1BEF78A400D2AD5E /* Tablet.swift */, + ); + name = Tablet; + path = ../Tablet; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + DAB7EB261BEF787300D2AD5E /* TabletDemo */ = { + isa = PBXNativeTarget; + buildConfigurationList = DAB7EB391BEF787300D2AD5E /* Build configuration list for PBXNativeTarget "TabletDemo" */; + buildPhases = ( + DAB7EB231BEF787300D2AD5E /* Sources */, + DAB7EB241BEF787300D2AD5E /* Frameworks */, + DAB7EB251BEF787300D2AD5E /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = TabletDemo; + productName = TabletDemo; + productReference = DAB7EB271BEF787300D2AD5E /* TabletDemo.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + DAB7EB1F1BEF787300D2AD5E /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0700; + ORGANIZATIONNAME = Tablet; + TargetAttributes = { + DAB7EB261BEF787300D2AD5E = { + CreatedOnToolsVersion = 7.0.1; + }; + }; + }; + buildConfigurationList = DAB7EB221BEF787300D2AD5E /* Build configuration list for PBXProject "TabletDemo" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = DAB7EB1E1BEF787300D2AD5E; + productRefGroup = DAB7EB281BEF787300D2AD5E /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + DAB7EB261BEF787300D2AD5E /* TabletDemo */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + DAB7EB251BEF787300D2AD5E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DAB7EB351BEF787300D2AD5E /* LaunchScreen.storyboard in Resources */, + DAB7EB321BEF787300D2AD5E /* Assets.xcassets in Resources */, + DAB7EB301BEF787300D2AD5E /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + DAB7EB231BEF787300D2AD5E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DAB7EB2D1BEF787300D2AD5E /* ViewController.swift in Sources */, + DAB7EB3E1BEF78A400D2AD5E /* Tablet.swift in Sources */, + DAB7EB2B1BEF787300D2AD5E /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + DAB7EB2E1BEF787300D2AD5E /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + DAB7EB2F1BEF787300D2AD5E /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + DAB7EB331BEF787300D2AD5E /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + DAB7EB341BEF787300D2AD5E /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + DAB7EB371BEF787300D2AD5E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + 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 = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + DAB7EB381BEF787300D2AD5E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; + 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 = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + DAB7EB3A1BEF787300D2AD5E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = TabletDemo/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.tablet.TabletDemo; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + DAB7EB3B1BEF787300D2AD5E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = TabletDemo/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.tablet.TabletDemo; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + DAB7EB221BEF787300D2AD5E /* Build configuration list for PBXProject "TabletDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DAB7EB371BEF787300D2AD5E /* Debug */, + DAB7EB381BEF787300D2AD5E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + DAB7EB391BEF787300D2AD5E /* Build configuration list for PBXNativeTarget "TabletDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DAB7EB3A1BEF787300D2AD5E /* Debug */, + DAB7EB3B1BEF787300D2AD5E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = DAB7EB1F1BEF787300D2AD5E /* Project object */; +} diff --git a/TabletDemo/TabletDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/TabletDemo/TabletDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..9fbb493 --- /dev/null +++ b/TabletDemo/TabletDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/TabletDemo/TabletDemo.xcodeproj/project.xcworkspace/xcuserdata/maxsokolov.xcuserdatad/UserInterfaceState.xcuserstate b/TabletDemo/TabletDemo.xcodeproj/project.xcworkspace/xcuserdata/maxsokolov.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000000000000000000000000000000000000..77672232c294afb01b19a607b6399e4524971cbc GIT binary patch literal 12263 zcmcIq33yY*_MatflV-bFni_%RYre0^y)$#>%$c+N&Y7uc zZt(a6nVClb1PEXt0C6B*pcJSkrp{x1evh|lVyd@hHd`C;PfB(BYG--q>&n!Cw^<3` z(hXY`Fb5<6Ay5G|&;SSM1Nwq~pg$M@(m*=M041Oli~!eykzf=U4aR`6pbU%yvN@B-Ki_JOy+ z0dN!?10RD=z*pc5_!^uA-$4K&L=Zy(jDzto0SciSYM>S-K^;tndT4;Xpc(dt{b2^o zhJ#=}yc%8ui(n}n3CF@RI2lfXQ{gl?9nOYxU;}J~O>i!p4_n|ucoSR-m%*FiEpP?A z8?FQd-UHXc2VfiA1RsHq!yWJ$xD&nzUxF{geei8~1RjOQ;0gFC{0g3dU&FKTH+TvD z4*!6c;hzYgc$9#oNQQJM8R?M$r631NL)mCBx&{@Yk!U=sKu$CTO-0iXi)NyFGzTq2 zH=sp`pb%P&ZbVDa?Pxh#jn<<3(0cSB+JYWKkE18hREg;(Ia@k+c3ug3S_ zHTYf}#_f0`eh5E~cj8_6S-cxRhxg#;@jkpCzk%PxNAOX648M<0;m`2r_$&MkzJ!0r zf8fjbPXQLh3laoEfut(6DcI0(7>Gb35CaL21LcG=XZjqr)jyejcW7yKYHfqt?+*hh zkP$?17%)IV1mr1F>0(kd^D?utvj&%@WtJ9arRC)0m82CE=NF`9X6Ftp%F8Lu&lx<> z#i&OXmrU^b=J=c4wQRAsHrU8E1)>vcfeF|*fh3><$v_VbpcgQbI1*11h>(a#A`x!_ zW?%s+lmi_|1*t?rq+}cAC7$T$$2Fa!?rEy?&M)=38(9}KwEJ|G?w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rB=qOvTChHtHo-w+O2)8 zMhJ#0O0{lt3G`nmP2^;_$C>yOr-t(R@U7H?D8^fsf-Vzb%$+0ty8 zwrpFjZK$olHpVu|Hp5nHn`!gdnr(jDJX@>nI@=Q4ZMIdmb#`bM*rj%Z-D>Y^&$AcV zOYI}=W9;MX74|B7jh(gE+h^Mw?Oyv_yWf7V{dxOW4uwPSusZrX(j9{wLmfqq3P+`5 pnq!8e#!=^JbOapp94(Foj_VzFI958=cAz}Oe+#rRAP+e1|35l0RWASl literal 0 HcmV?d00001 diff --git a/TabletDemo/TabletDemo.xcodeproj/xcuserdata/maxsokolov.xcuserdatad/xcschemes/TabletDemo.xcscheme b/TabletDemo/TabletDemo.xcodeproj/xcuserdata/maxsokolov.xcuserdatad/xcschemes/TabletDemo.xcscheme new file mode 100644 index 0000000..6db4123 --- /dev/null +++ b/TabletDemo/TabletDemo.xcodeproj/xcuserdata/maxsokolov.xcuserdatad/xcschemes/TabletDemo.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TabletDemo/TabletDemo.xcodeproj/xcuserdata/maxsokolov.xcuserdatad/xcschemes/xcschememanagement.plist b/TabletDemo/TabletDemo.xcodeproj/xcuserdata/maxsokolov.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..c382e1a --- /dev/null +++ b/TabletDemo/TabletDemo.xcodeproj/xcuserdata/maxsokolov.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + TabletDemo.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + DAB7EB261BEF787300D2AD5E + + primary + + + + + diff --git a/TabletDemo/TabletDemo/AppDelegate.swift b/TabletDemo/TabletDemo/AppDelegate.swift new file mode 100644 index 0000000..5453072 --- /dev/null +++ b/TabletDemo/TabletDemo/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// TabletDemo +// +// Created by Max Sokolov on 08/11/15. +// Copyright © 2015 Tablet. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> 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 throttle down OpenGL ES frame rates. 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 inactive 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:. + } + + +} + diff --git a/TabletDemo/TabletDemo/Assets.xcassets/AppIcon.appiconset/Contents.json b/TabletDemo/TabletDemo/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..118c98f --- /dev/null +++ b/TabletDemo/TabletDemo/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,38 @@ +{ + "images" : [ + { + "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" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TabletDemo/TabletDemo/Base.lproj/LaunchScreen.storyboard b/TabletDemo/TabletDemo/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..2e721e1 --- /dev/null +++ b/TabletDemo/TabletDemo/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TabletDemo/TabletDemo/Base.lproj/Main.storyboard b/TabletDemo/TabletDemo/Base.lproj/Main.storyboard new file mode 100644 index 0000000..3a2a49b --- /dev/null +++ b/TabletDemo/TabletDemo/Base.lproj/Main.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TabletDemo/TabletDemo/Info.plist b/TabletDemo/TabletDemo/Info.plist new file mode 100644 index 0000000..6c48029 --- /dev/null +++ b/TabletDemo/TabletDemo/Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + + diff --git a/TabletDemo/TabletDemo/ViewController.swift b/TabletDemo/TabletDemo/ViewController.swift new file mode 100644 index 0000000..327c880 --- /dev/null +++ b/TabletDemo/TabletDemo/ViewController.swift @@ -0,0 +1,25 @@ +// +// ViewController.swift +// TabletDemo +// +// Created by Max Sokolov on 08/11/15. +// Copyright © 2015 Tablet. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + +} +