Skip to content
This repository was archived by the owner on Nov 2, 2025. It is now read-only.

Commit 6d6d167

Browse files
authored
Merge pull request #5 from cruisediary/development
development 0.1.0
2 parents 95276f3 + 8e29b58 commit 6d6d167

24 files changed

Lines changed: 1246 additions & 9 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ playground.xcworkspace
4343
# you should judge for yourself, the pros and cons are mentioned at:
4444
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
4545
#
46-
# Pods/
46+
Pods/
4747

4848
# Carthage
4949
#

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0

DeviceLayout.podspec

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#
2+
# Be sure to run `pod lib lint DeviceLayout.podspec' to ensure this is a
3+
# valid spec before submitting.
4+
#
5+
# Any lines starting with a # are optional, but their use is encouraged
6+
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
7+
#
8+
9+
Pod::Spec.new do |s|
10+
s.name = 'DeviceLayout'
11+
s.version = '0.1.0'
12+
s.summary = 'Auto Layout can be set differently for each device.'
13+
14+
# This description is used to generate tags and improve search results.
15+
# * Think: What does it do? Why did you write it? What is the focus?
16+
# * Try to keep it short, snappy and to the point.
17+
# * Write the description between the DESC delimiters below.
18+
# * Finally, don't worry about the indent, CocoaPods strips it!
19+
20+
s.description = 'Auto Layout can be set differently for each device. use IBInspectable'
21+
s.homepage = 'https://github.com/cruisediary/DeviceLayout'
22+
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
23+
s.license = { :type => 'MIT', :file => 'LICENSE' }
24+
s.author = { 'cruisediary' => 'cruzdiary@gmail.com' }
25+
s.source = { :git => 'https://github.com/cruisediary/DeviceLayout.git', :tag => s.version.to_s }
26+
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
27+
28+
s.ios.deployment_target = '8.0'
29+
30+
s.source_files = 'Sources/**/*'
31+
s.dependency 'Device', '~> 2.0.0'
32+
# s.resource_bundles = {
33+
# 'DeviceLayout' => ['DeviceLayout/Assets/*.png']
34+
# }
35+
36+
# s.public_header_files = 'Pod/Classes/**/*.h'
37+
# s.frameworks = 'UIKit', 'MapKit'
38+
# s.dependency 'AFNetworking', '~> 2.3'
39+
end

DeviceLayout/Assets/.gitkeep

Whitespace-only changes.

Example/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pbxproj binary merge=union

Example/DeviceLayout.xcodeproj/project.pbxproj

Lines changed: 602 additions & 0 deletions
Large diffs are not rendered by default.

Example/DeviceLayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0820"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
18+
BuildableName = "DeviceLayout_Example.app"
19+
BlueprintName = "DeviceLayout_Example"
20+
ReferencedContainer = "container:DeviceLayout.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "607FACE41AFB9204008FA782"
32+
BuildableName = "DeviceLayout_Tests.xctest"
33+
BlueprintName = "DeviceLayout_Tests"
34+
ReferencedContainer = "container:DeviceLayout.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<Testables>
45+
<TestableReference
46+
skipped = "NO">
47+
<BuildableReference
48+
BuildableIdentifier = "primary"
49+
BlueprintIdentifier = "607FACE41AFB9204008FA782"
50+
BuildableName = "DeviceLayout_Tests.xctest"
51+
BlueprintName = "DeviceLayout_Tests"
52+
ReferencedContainer = "container:DeviceLayout.xcodeproj">
53+
</BuildableReference>
54+
</TestableReference>
55+
</Testables>
56+
<MacroExpansion>
57+
<BuildableReference
58+
BuildableIdentifier = "primary"
59+
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
60+
BuildableName = "DeviceLayout_Example.app"
61+
BlueprintName = "DeviceLayout_Example"
62+
ReferencedContainer = "container:DeviceLayout.xcodeproj">
63+
</BuildableReference>
64+
</MacroExpansion>
65+
<AdditionalOptions>
66+
</AdditionalOptions>
67+
</TestAction>
68+
<LaunchAction
69+
buildConfiguration = "Debug"
70+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
71+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
72+
launchStyle = "0"
73+
useCustomWorkingDirectory = "NO"
74+
ignoresPersistentStateOnLaunch = "NO"
75+
debugDocumentVersioning = "YES"
76+
debugServiceExtension = "internal"
77+
allowLocationSimulation = "YES">
78+
<BuildableProductRunnable
79+
runnableDebuggingMode = "0">
80+
<BuildableReference
81+
BuildableIdentifier = "primary"
82+
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
83+
BuildableName = "DeviceLayout_Example.app"
84+
BlueprintName = "DeviceLayout_Example"
85+
ReferencedContainer = "container:DeviceLayout.xcodeproj">
86+
</BuildableReference>
87+
</BuildableProductRunnable>
88+
<AdditionalOptions>
89+
</AdditionalOptions>
90+
</LaunchAction>
91+
<ProfileAction
92+
buildConfiguration = "Release"
93+
shouldUseLaunchSchemeArgsEnv = "YES"
94+
savedToolIdentifier = ""
95+
useCustomWorkingDirectory = "NO"
96+
debugDocumentVersioning = "YES">
97+
<BuildableProductRunnable
98+
runnableDebuggingMode = "0">
99+
<BuildableReference
100+
BuildableIdentifier = "primary"
101+
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
102+
BuildableName = "DeviceLayout_Example.app"
103+
BlueprintName = "DeviceLayout_Example"
104+
ReferencedContainer = "container:DeviceLayout.xcodeproj">
105+
</BuildableReference>
106+
</BuildableProductRunnable>
107+
</ProfileAction>
108+
<AnalyzeAction
109+
buildConfiguration = "Debug">
110+
</AnalyzeAction>
111+
<ArchiveAction
112+
buildConfiguration = "Release"
113+
revealArchiveInOrganizer = "YES">
114+
</ArchiveAction>
115+
</Scheme>

Example/DeviceLayout.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
//
2+
// AppDelegate.swift
3+
// DeviceLayout
4+
//
5+
// Created by cruisediary on 12/15/2016.
6+
// Copyright (c) 2016 cruisediary. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
@UIApplicationMain
12+
class AppDelegate: UIResponder, UIApplicationDelegate {
13+
14+
var window: UIWindow?
15+
16+
17+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
18+
// Override point for customization after application launch.
19+
return true
20+
}
21+
22+
func applicationWillResignActive(_ application: UIApplication) {
23+
// 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.
24+
// 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.
25+
}
26+
27+
func applicationDidEnterBackground(_ application: UIApplication) {
28+
// 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.
29+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30+
}
31+
32+
func applicationWillEnterForeground(_ application: UIApplication) {
33+
// 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.
34+
}
35+
36+
func applicationDidBecomeActive(_ application: UIApplication) {
37+
// 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.
38+
}
39+
40+
func applicationWillTerminate(_ application: UIApplication) {
41+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42+
}
43+
44+
45+
}
46+

0 commit comments

Comments
 (0)