-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ⚡ WIP * ⚡ WIP * 🌲 Update * Rename * Update * Clean * 🌲 Update * 🌲 Update * Rename * Clean * 🌲 Update * Cleanup trackingState * 🌲 Update * clean up * Update Position struct * 🌲 Update * Update state * make scrolling better * Fix scrollView * Cleanup * 🌲 Update * wrapping up the configuration * 🌲 Update * Update workflow file * Update Demo * 🌲 Update * Update scroll indicator visibility * update animation * Update self-sizing update * Fix strange animation * Add text input demo * 🌲 Update * fix pan-direction * 🌲 Update * Update Logger * Add handlers
- Loading branch information
Showing
26 changed files
with
2,372 additions
and
1,258 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
85 changes: 85 additions & 0 deletions
85
Rideau.xcodeproj/xcshareddata/xcschemes/RideauDemo2.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,85 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1250" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "4B2B870D26BA88D100887DC8" | ||
BuildableName = "RideauDemo2.app" | ||
BlueprintName = "RideauDemo2" | ||
ReferencedContainer = "container:Rideau.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "4B2B870D26BA88D100887DC8" | ||
BuildableName = "RideauDemo2.app" | ||
BlueprintName = "RideauDemo2" | ||
ReferencedContainer = "container:Rideau.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<EnvironmentVariables> | ||
<EnvironmentVariable | ||
key = "RIDEAU_DEBUG" | ||
value = "" | ||
isEnabled = "YES"> | ||
</EnvironmentVariable> | ||
</EnvironmentVariables> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Debug" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "4B2B870D26BA88D100887DC8" | ||
BuildableName = "RideauDemo2.app" | ||
BlueprintName = "RideauDemo2" | ||
ReferencedContainer = "container:Rideau.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import UIKit | ||
import os.log | ||
|
||
enum Log { | ||
|
||
static func debug(_ log: OSLog, _ object: Any...) { | ||
if #available(iOS 12.0, *) { | ||
os_log(.debug, log: log, "%@", object.map { "\($0)" }.joined(separator: " ")) | ||
} | ||
} | ||
|
||
static func error(_ log: OSLog, _ object: Any...) { | ||
if #available(iOS 12.0, *) { | ||
os_log(.error, log: log, "%@", object.map { "\($0)" }.joined(separator: " ")) | ||
} | ||
} | ||
|
||
} | ||
|
||
extension OSLog { | ||
|
||
private static let isDebugEnabled: Bool = { | ||
ProcessInfo().environment["RIDEAU_DEBUG"] != nil | ||
}() | ||
|
||
private static func makeLogger(category: String) -> OSLog { | ||
#if DEBUG | ||
if isDebugEnabled { | ||
return OSLog.init(subsystem: "Rideau", category: category) | ||
} else { | ||
return .disabled | ||
} | ||
#else | ||
return .disabled | ||
#endif | ||
} | ||
|
||
static let handlers: OSLog = { | ||
return makeLogger(category: "🚕 handlers") | ||
}() | ||
|
||
static let pan: OSLog = { | ||
return makeLogger(category: "👆pan") | ||
}() | ||
|
||
static let scrollView: OSLog = { | ||
return makeLogger(category: "🎞 ScrollView") | ||
}() | ||
|
||
static let animation: OSLog = { | ||
return makeLogger(category: "🕹 Animation") | ||
}() | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.