forked from zalando/SwiftMonkey
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request zalando#1 from zalando/master
Merge current state.
- Loading branch information
Showing
14 changed files
with
429 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
SwiftMonkey/SwiftMonkey.xcodeproj/xcshareddata/xcschemes/SwiftMonkey.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "0920" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "OBJ_17" | ||
BuildableName = "SwiftMonkey.framework" | ||
BlueprintName = "SwiftMonkey" | ||
ReferencedContainer = "container:SwiftMonkey.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
language = "" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
</Testables> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
language = "" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "OBJ_17" | ||
BuildableName = "SwiftMonkey.framework" | ||
BlueprintName = "SwiftMonkey" | ||
ReferencedContainer = "container:SwiftMonkey.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "OBJ_17" | ||
BuildableName = "SwiftMonkey.framework" | ||
BlueprintName = "SwiftMonkey" | ||
ReferencedContainer = "container:SwiftMonkey.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// | ||
// Configuration.swift | ||
// SwiftMonkeyPaws | ||
// | ||
// Created by Daniel.Metzing on 11.02.18. | ||
// | ||
|
||
import UIKit | ||
|
||
public struct Configuration { | ||
// Customise the appearance of the paws | ||
public struct Paws { | ||
|
||
/// Define the colour of the Paws | ||
/// | ||
/// - randomized: random colour for each paw | ||
/// - constant: same colour for the paws | ||
public enum Color { | ||
case randomized | ||
case constant(UIColor) | ||
} | ||
// Colour of the paws | ||
public let color: Color | ||
|
||
// Brightness of a particular paw | ||
public let brightness: CGFloat | ||
|
||
// Maximum visible paws at one time | ||
public let maxShown: Int | ||
|
||
public init(colour: Color = .randomized, brightness: CGFloat = 0.5, maxShown: Int = 15) { | ||
self.color = colour | ||
self.brightness = brightness | ||
self.maxShown = maxShown | ||
} | ||
} | ||
|
||
public struct Radius { | ||
|
||
/// Radius of the cross draw upon canceling a touch event | ||
public let cross: CGFloat | ||
|
||
/// Radius of the circle draw upon ending a touch event | ||
public let circle: CGFloat | ||
|
||
public init(cross: CGFloat = 7, circle: CGFloat = 7) { | ||
self.cross = cross | ||
self.circle = circle | ||
} | ||
} | ||
|
||
public let paws: Paws | ||
public let radius: Radius | ||
|
||
public init(paws: Paws = Paws(), radius: Radius = Radius()) { | ||
self.paws = paws | ||
self.radius = radius | ||
} | ||
} |
Oops, something went wrong.