Ind.ie is now
Small Technology Foundation
.
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Timer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ind.ie Projects
Timer
Commits
e435e8d6
Commit
e435e8d6
authored
Aug 29, 2016
by
Aral Balkan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Framework now builds for macOS also (Swift 3)
Progress towards
#2
parent
9aaf7565
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
12 deletions
+20
-12
Timer/Timer.xcodeproj/project.pbxproj
Timer/Timer.xcodeproj/project.pbxproj
+12
-1
Timer/Timer/Timer.h
Timer/Timer/Timer.h
+1
-1
TimerDemo-iOS/TimerDemo-iOS/Base.lproj/Main.storyboard
TimerDemo-iOS/TimerDemo-iOS/Base.lproj/Main.storyboard
+7
-10
No files found.
Timer/Timer.xcodeproj/project.pbxproj
View file @
e435e8d6
...
...
@@ -93,7 +93,7 @@
A727A9E51C9EF6BF00F44ED3
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
0
72
0
;
LastUpgradeCheck
=
0
80
0
;
ORGANIZATIONNAME
=
"Aral Balkan"
;
TargetAttributes
=
{
A727A9ED1C9EF6BF00F44ED3
=
{
...
...
@@ -154,8 +154,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE
=
YES_ERROR
;
CLANG_WARN_EMPTY_BODY
=
YES
;
CLANG_WARN_ENUM_CONVERSION
=
YES
;
CLANG_WARN_INFINITE_RECURSION
=
YES
;
CLANG_WARN_INT_CONVERSION
=
YES
;
CLANG_WARN_OBJC_ROOT_CLASS
=
YES_ERROR
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
CLANG_WARN_UNREACHABLE_CODE
=
YES
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
...
...
@@ -202,8 +204,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE
=
YES_ERROR
;
CLANG_WARN_EMPTY_BODY
=
YES
;
CLANG_WARN_ENUM_CONVERSION
=
YES
;
CLANG_WARN_INFINITE_RECURSION
=
YES
;
CLANG_WARN_INT_CONVERSION
=
YES
;
CLANG_WARN_OBJC_ROOT_CLASS
=
YES_ERROR
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
CLANG_WARN_UNREACHABLE_CODE
=
YES
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
...
...
@@ -223,6 +227,7 @@
IPHONEOS_DEPLOYMENT_TARGET
=
9.2
;
MTL_ENABLE_DEBUG_INFO
=
NO
;
SDKROOT
=
iphoneos
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Owholemodule"
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
VALIDATE_PRODUCT
=
YES
;
VERSIONING_SYSTEM
=
"apple-generic"
;
...
...
@@ -234,6 +239,7 @@
isa
=
XCBuildConfiguration
;
buildSettings
=
{
CLANG_ENABLE_MODULES
=
YES
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
""
;
DEFINES_MODULE
=
YES
;
DYLIB_COMPATIBILITY_VERSION
=
1
;
DYLIB_CURRENT_VERSION
=
1
;
...
...
@@ -244,8 +250,10 @@
PRODUCT_BUNDLE_IDENTIFIER
=
ind.ie.Timer
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
SKIP_INSTALL
=
YES
;
SUPPORTED_PLATFORMS
=
"iphonesimulator iphoneos macosx"
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Onone"
;
SWIFT_VERSION
=
3.0
;
VALID_ARCHS
=
"arm64 armv7 armv7s x86_64 i386"
;
};
name
=
Debug
;
};
...
...
@@ -253,6 +261,7 @@
isa
=
XCBuildConfiguration
;
buildSettings
=
{
CLANG_ENABLE_MODULES
=
YES
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
""
;
DEFINES_MODULE
=
YES
;
DYLIB_COMPATIBILITY_VERSION
=
1
;
DYLIB_CURRENT_VERSION
=
1
;
...
...
@@ -263,7 +272,9 @@
PRODUCT_BUNDLE_IDENTIFIER
=
ind.ie.Timer
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
SKIP_INSTALL
=
YES
;
SUPPORTED_PLATFORMS
=
"iphonesimulator iphoneos macosx"
;
SWIFT_VERSION
=
3.0
;
VALID_ARCHS
=
"arm64 armv7 armv7s x86_64 i386"
;
};
name
=
Release
;
};
...
...
Timer/Timer/Timer.h
View file @
e435e8d6
...
...
@@ -6,7 +6,7 @@
// Copyright © 2016 Aral Balkan. All rights reserved.
//
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
//! Project version number for Timer.
FOUNDATION_EXPORT
double
TimerVersionNumber
;
...
...
TimerDemo-iOS/TimerDemo-iOS/Base.lproj/Main.storyboard
View file @
e435e8d6
<?xml version="1.0" encoding="UTF-8"
standalone="no"
?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"1
0116"
systemVersion=
"15E65"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections
=
"YES"
initialViewController=
"BYZ-38-t0r"
>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"1
1198.2"
systemVersion=
"16A304a"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched
=
"YES"
initialViewController=
"BYZ-38-t0r"
>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
0085
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
1161
"
/>
<capability
name=
"Constraints to layout margins"
minToolsVersion=
"6.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<scenes>
<!--View Controller-->
...
...
@@ -15,18 +16,16 @@
<viewControllerLayoutGuide
type=
"bottom"
id=
"wfy-db-euE"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"8bC-Xf-vdC"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
600"
height=
"600
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
375"
height=
"667
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"TTP-Ng-Sd5"
>
<rect
key=
"frame"
x=
"242"
y=
"550"
width=
"34"
height=
"30"
/>
<state
key=
"normal"
title=
"Start"
/>
<connections>
<action
selector=
"startButtonPressed:"
destination=
"BYZ-38-t0r"
eventType=
"touchUpInside"
id=
"Cqy-gB-aXb"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"IEo-7P-rln"
>
<rect
key=
"frame"
x=
"284"
y=
"550"
width=
"32"
height=
"30"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"PK3-4D-0Br"
/>
</constraints>
...
...
@@ -36,20 +35,18 @@
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JLH-vp-XSy"
>
<rect
key=
"frame"
x=
"324"
y=
"550"
width=
"39"
height=
"30"
/>
<state
key=
"normal"
title=
"Reset"
/>
<connections>
<action
selector=
"resetButtonPressed:"
destination=
"BYZ-38-t0r"
eventType=
"touchUpInside"
id=
"uoV-AJ-bPZ"
/>
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"one hour, forty-two minutes, thirty seconds"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
numberOfLines=
"5"
baselineAdjustment=
"alignBaselines"
minimumFontSize=
"30"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"PXf-M5-QEM"
>
<rect
key=
"frame"
x=
"20"
y=
"20"
width=
"560"
height=
"522"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"ultraLight"
pointSize=
"50"
/>
<color
key=
"textColor"
red=
"0.41860977564102564"
green=
"0.41860977564102564"
blue=
"0.41860977564102564"
alpha=
"1"
colorSpace=
"c
alibrated
RGB"
/>
<color
key=
"textColor"
red=
"0.41860977564102564"
green=
"0.41860977564102564"
blue=
"0.41860977564102564"
alpha=
"1"
colorSpace=
"c
ustom"
customColorSpace=
"s
RGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"calibratedWhite
"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB
"
/>
<constraints>
<constraint
firstItem=
"wfy-db-euE"
firstAttribute=
"top"
secondItem=
"IEo-7P-rln"
secondAttribute=
"bottom"
constant=
"20"
id=
"0eC-71-2SK"
/>
<constraint
firstItem=
"JLH-vp-XSy"
firstAttribute=
"leading"
secondItem=
"IEo-7P-rln"
secondAttribute=
"trailing"
constant=
"8"
id=
"6Ve-pj-Q1K"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment