├── .gitignore ├── .swiftpm └── xcode │ └── package.xcworkspace │ └── contents.xcworkspacedata ├── CHANGELOG.md ├── CONTRIBUTING.md ├── Images └── icon.png ├── LICENSE.md ├── Package.swift ├── README.md ├── Sources ├── Shared │ ├── Application.swift │ ├── Extensions │ │ ├── Array+Queueable.swift │ │ ├── Double+DateTime.swift │ │ ├── NSDate+Extensions.swift │ │ ├── String+CoreFoundation.swift │ │ ├── String+Empty.swift │ │ ├── String+Extension.swift │ │ ├── String+Regex.swift │ │ ├── String+URLStringConvertible.swift │ │ └── String+Validation.swift │ ├── GrandCentralDispatch.swift │ ├── Once.swift │ ├── Operator.swift │ ├── Swizzler.swift │ ├── Then.swift │ ├── TypeAlias.swift │ ├── UITesting.swift │ └── UnitTesting.swift ├── iOS-Exclusive │ ├── Keyboard │ │ ├── BasicKeyboardHandler.swift │ │ ├── ConstraintKeyboardHandler.swift │ │ ├── CustomKeyboardHandler.swift │ │ ├── InsetKeyboardHandler.swift │ │ ├── KeyboardHandler.swift │ │ ├── KeyboardInfo.swift │ │ └── KeyboardObserver.swift │ └── Utilities.swift └── iOS │ ├── Constraint.swift │ ├── Extensions │ ├── UIDevice+Model.swift │ ├── UIImage+Extension.swift │ ├── UIImage+RenderingMode.swift │ ├── UIStackView+AddArrangedSubviews.swift │ ├── UIView+AddSubviews.swift │ ├── UIView+Frame.swift │ └── UIView+Optimize.swift │ ├── Screen.swift │ └── Simulator.swift ├── Sugar.podspec ├── Sugar.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcshareddata │ └── xcschemes │ ├── Sugar-iOS.xcscheme │ ├── Sugar-macOS.xcscheme │ └── Sugar-tvOS.xcscheme ├── SupportFiles ├── Mac │ └── Info.plist ├── iOS │ └── Info.plist └── tvOS │ └── Info.plist ├── Tests ├── Mac │ ├── Info.plist │ └── TestThen.swift ├── Shared │ ├── OnceTests.swift │ ├── TestDate.swift │ ├── TestDouble.swift │ ├── TestOperators.swift │ ├── TestQueueable.swift │ ├── TestString.swift │ ├── TestStringExtensionCoreFoundation.swift │ └── TestUnitTesting.swift ├── iOS │ ├── Info.plist │ ├── TestThen.swift │ └── TestUIImage.swift └── tvOS │ └── Info.plist └── circle.yml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/.gitignore -------------------------------------------------------------------------------- /.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Images/icon.png -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/LICENSE.md -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Package.swift -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/README.md -------------------------------------------------------------------------------- /Sources/Shared/Application.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Application.swift -------------------------------------------------------------------------------- /Sources/Shared/Extensions/Array+Queueable.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Extensions/Array+Queueable.swift -------------------------------------------------------------------------------- /Sources/Shared/Extensions/Double+DateTime.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Extensions/Double+DateTime.swift -------------------------------------------------------------------------------- /Sources/Shared/Extensions/NSDate+Extensions.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Extensions/NSDate+Extensions.swift -------------------------------------------------------------------------------- /Sources/Shared/Extensions/String+CoreFoundation.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Extensions/String+CoreFoundation.swift -------------------------------------------------------------------------------- /Sources/Shared/Extensions/String+Empty.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Extensions/String+Empty.swift -------------------------------------------------------------------------------- /Sources/Shared/Extensions/String+Extension.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Extensions/String+Extension.swift -------------------------------------------------------------------------------- /Sources/Shared/Extensions/String+Regex.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Extensions/String+Regex.swift -------------------------------------------------------------------------------- /Sources/Shared/Extensions/String+URLStringConvertible.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Extensions/String+URLStringConvertible.swift -------------------------------------------------------------------------------- /Sources/Shared/Extensions/String+Validation.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Extensions/String+Validation.swift -------------------------------------------------------------------------------- /Sources/Shared/GrandCentralDispatch.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/GrandCentralDispatch.swift -------------------------------------------------------------------------------- /Sources/Shared/Once.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Once.swift -------------------------------------------------------------------------------- /Sources/Shared/Operator.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Operator.swift -------------------------------------------------------------------------------- /Sources/Shared/Swizzler.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Swizzler.swift -------------------------------------------------------------------------------- /Sources/Shared/Then.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/Then.swift -------------------------------------------------------------------------------- /Sources/Shared/TypeAlias.swift: -------------------------------------------------------------------------------- 1 | public typealias Action = () -> Void 2 | -------------------------------------------------------------------------------- /Sources/Shared/UITesting.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/UITesting.swift -------------------------------------------------------------------------------- /Sources/Shared/UnitTesting.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/Shared/UnitTesting.swift -------------------------------------------------------------------------------- /Sources/iOS-Exclusive/Keyboard/BasicKeyboardHandler.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS-Exclusive/Keyboard/BasicKeyboardHandler.swift -------------------------------------------------------------------------------- /Sources/iOS-Exclusive/Keyboard/ConstraintKeyboardHandler.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS-Exclusive/Keyboard/ConstraintKeyboardHandler.swift -------------------------------------------------------------------------------- /Sources/iOS-Exclusive/Keyboard/CustomKeyboardHandler.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS-Exclusive/Keyboard/CustomKeyboardHandler.swift -------------------------------------------------------------------------------- /Sources/iOS-Exclusive/Keyboard/InsetKeyboardHandler.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS-Exclusive/Keyboard/InsetKeyboardHandler.swift -------------------------------------------------------------------------------- /Sources/iOS-Exclusive/Keyboard/KeyboardHandler.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS-Exclusive/Keyboard/KeyboardHandler.swift -------------------------------------------------------------------------------- /Sources/iOS-Exclusive/Keyboard/KeyboardInfo.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS-Exclusive/Keyboard/KeyboardInfo.swift -------------------------------------------------------------------------------- /Sources/iOS-Exclusive/Keyboard/KeyboardObserver.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS-Exclusive/Keyboard/KeyboardObserver.swift -------------------------------------------------------------------------------- /Sources/iOS-Exclusive/Utilities.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS-Exclusive/Utilities.swift -------------------------------------------------------------------------------- /Sources/iOS/Constraint.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS/Constraint.swift -------------------------------------------------------------------------------- /Sources/iOS/Extensions/UIDevice+Model.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS/Extensions/UIDevice+Model.swift -------------------------------------------------------------------------------- /Sources/iOS/Extensions/UIImage+Extension.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS/Extensions/UIImage+Extension.swift -------------------------------------------------------------------------------- /Sources/iOS/Extensions/UIImage+RenderingMode.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS/Extensions/UIImage+RenderingMode.swift -------------------------------------------------------------------------------- /Sources/iOS/Extensions/UIStackView+AddArrangedSubviews.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS/Extensions/UIStackView+AddArrangedSubviews.swift -------------------------------------------------------------------------------- /Sources/iOS/Extensions/UIView+AddSubviews.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS/Extensions/UIView+AddSubviews.swift -------------------------------------------------------------------------------- /Sources/iOS/Extensions/UIView+Frame.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS/Extensions/UIView+Frame.swift -------------------------------------------------------------------------------- /Sources/iOS/Extensions/UIView+Optimize.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS/Extensions/UIView+Optimize.swift -------------------------------------------------------------------------------- /Sources/iOS/Screen.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS/Screen.swift -------------------------------------------------------------------------------- /Sources/iOS/Simulator.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sources/iOS/Simulator.swift -------------------------------------------------------------------------------- /Sugar.podspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sugar.podspec -------------------------------------------------------------------------------- /Sugar.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sugar.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /Sugar.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sugar.xcodeproj/project.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /Sugar.xcodeproj/xcshareddata/xcschemes/Sugar-iOS.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sugar.xcodeproj/xcshareddata/xcschemes/Sugar-iOS.xcscheme -------------------------------------------------------------------------------- /Sugar.xcodeproj/xcshareddata/xcschemes/Sugar-macOS.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sugar.xcodeproj/xcshareddata/xcschemes/Sugar-macOS.xcscheme -------------------------------------------------------------------------------- /Sugar.xcodeproj/xcshareddata/xcschemes/Sugar-tvOS.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Sugar.xcodeproj/xcshareddata/xcschemes/Sugar-tvOS.xcscheme -------------------------------------------------------------------------------- /SupportFiles/Mac/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/SupportFiles/Mac/Info.plist -------------------------------------------------------------------------------- /SupportFiles/iOS/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/SupportFiles/iOS/Info.plist -------------------------------------------------------------------------------- /SupportFiles/tvOS/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/SupportFiles/tvOS/Info.plist -------------------------------------------------------------------------------- /Tests/Mac/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/Mac/Info.plist -------------------------------------------------------------------------------- /Tests/Mac/TestThen.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/Mac/TestThen.swift -------------------------------------------------------------------------------- /Tests/Shared/OnceTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/Shared/OnceTests.swift -------------------------------------------------------------------------------- /Tests/Shared/TestDate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/Shared/TestDate.swift -------------------------------------------------------------------------------- /Tests/Shared/TestDouble.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/Shared/TestDouble.swift -------------------------------------------------------------------------------- /Tests/Shared/TestOperators.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/Shared/TestOperators.swift -------------------------------------------------------------------------------- /Tests/Shared/TestQueueable.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/Shared/TestQueueable.swift -------------------------------------------------------------------------------- /Tests/Shared/TestString.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/Shared/TestString.swift -------------------------------------------------------------------------------- /Tests/Shared/TestStringExtensionCoreFoundation.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/Shared/TestStringExtensionCoreFoundation.swift -------------------------------------------------------------------------------- /Tests/Shared/TestUnitTesting.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/Shared/TestUnitTesting.swift -------------------------------------------------------------------------------- /Tests/iOS/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/iOS/Info.plist -------------------------------------------------------------------------------- /Tests/iOS/TestThen.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/iOS/TestThen.swift -------------------------------------------------------------------------------- /Tests/iOS/TestUIImage.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/iOS/TestUIImage.swift -------------------------------------------------------------------------------- /Tests/tvOS/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/Tests/tvOS/Info.plist -------------------------------------------------------------------------------- /circle.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperoslo/Sugar/HEAD/circle.yml --------------------------------------------------------------------------------