forked from SwifterSwift/SwifterSwift
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fork update #2
Merged
Merged
fork update #2
Conversation
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
* Add initializers with Literals for UILayoutPriority * Added CHANGELOG entry * Undo project.pbxproj changes * Update unit tests * Remove whitespace from CHANGELOG * Remove redundant tests
* Add addition operator to `UIEdgeInsets` * Add in-place mutating addition for UIEdgeInsets
…es. (#555) * Add `rotated(by:)` functions to `UIImage` for generating rotated images. * spaces -> tabs * Fix availability * Fix CHANGELOG message * Add SwifterSwift to comments
* Added 'key(forValue: Value)' method to DictionaryExtensions * Added 'key(forValue: Value)' method to DictionaryExtensions * Added 'key(forValue: Value)' method to DictionaryExtensions * Added 'key(forValue: Value)' method to DictionaryExtensions
* Updating Code base and iOS Unit Tests. * Updating MacOS tests * Update travis image. * Updating some extensions. * Updating pod spec swift version * Updating swift version * Fixing indentation on some files. * Indenting. * Indenting some files. * Running swiftlint autocorrect --format * Workaround cocoapods issue * Updating spec, readme and changelog for new version. * Removing toggles since they are stdlib now. * Deprecating random extensions in favor of the natives. * Updating arc4_random usages. * Removing prior SwifterSwift 4.2.0 version deprecated version.
* added ancestorView(withClass:) * review changes * added PR to changelog * added ancestorView(where:)
…o specify Swift version of pod target itself. (#566)
…he latest version (#569) * Update the CHANGELOG to correctly display what has been changed for the latest version Close the version to create a public release * Update README and podspec for v4.6.0
* Fixed image cropped method * Added #575 pull request description
* Created Dictionary[path:] key-path subscript for deep fetching/setting * Created DictionaryExtensionTests.testSubscriptKeypath test case * Added Dictionary[path:] subscript entry to CHANGELOG * Updated PR number in CHANGELOG for Dictionary[path:] entry * Removed extrenuous 'return' from Dictionary[path:] setter * Use for-in loop instead of .reduce in Dictionary[path:] to allow early returns * Added path count guard to Dictionary[path:] getter * Added empty path test to DictionaryExtensionTests.testSubscriptKeypath test case * Added [key, key1] path test to DictionaryExtensionTests.testSubscriptKeypath test case * Use .isEmptry instead of .count check for path length guard in Dictionary[path:]
* Clean up usage of new random functions * Update project version to match current
…r it. (#578) * Added Date property "yesterday" and a test function for it. * Updated Changelog with propery for Date * Updated Changelog with propery for Date * Updated Changelog with propery for Date * Adding 'yesterday' property for Date (PR #578) error fix. * Adding property 'yesterday' for Date (PR ##578), comment, syntax and unit test fix * Changes made for Changelog and a test case
* added WhatsApp color * added changelog
* removed self when not needed * improved formatting
…#583) * Add `rounded(numberOfDecimalPlaces:rule:)` to `Float` and `Double` * Add `rounded(numberOfDecimalPlaces:, rule:)` to CHANGELOG * Append pr detail to CHANGELOG * Prefer `max` over comparison, thank guykogus * Move method from `Double` and `Float` to `BinaryFloatingPoint`, thank LucianoPAlmeida (#583) * Make method public #583 * Minor changes
… random API (#576) * Replace the old Date.random function with ones using the new built-in random API * Update changelog * Add SwifterSwift to documentation
* Fix unit test fail of testing date beginning * Use NSTimeZone.default instead Timezone.current or Date().timezone code review by @guykogus and @jianstm * Revert testTimezone() using Date().timeZone
…ods project (#590) * Add an project of installation example with Cocoapods * Fix up `source_files` to correct the group paths of SwifterSwift in Pods project. * Use `dependency`='SwifterSwift/Shared/Color' instead of `source_files`='Sources/Extensions/Shared/ColorExtensions.swift' for subspec 'UIKit', 'AppKit' * Update `Podfile` of the example project to describe that fixed issue. * Update CHANGELOG of PR #590 * Delete the test targets of example project. * Delete the example project with Cocoapods installation. * Revoke the subspec 'Shared/Color' and put back the source files to its original group 'Shared'.
* Create playground with working examples of extensions from Examples.md * Remove Examples.md * Add Examples playground into the project * Remove number of Swift version from playground text * Update README.md to replace Examples.md with Examples.playground * Update CHANGELOG.md to include PR changes into upcoming release * Update Examples.playground - to remove sections and categories without examples - to add message to build the project before using the playground - to add "Try yourself" section - rename playground pages files * Fix SwiftLint warnings * Remove some examples which actually do not show an output in playground Update some examples to show an output in playground * Remove unuseful example from playground * Do small fixes for UIImage/UIImageView extensions examples * Fix swiftlint warnings
* added UIActivityExtensions * added changelog * removed google plus * removed UIActivityExtensions from tvOS * updated changelog * added newline * added empty line
* Added functions Added functions to count the number of times that the element occours in the array, and function to return duplicated element in the array. * Update Sources/Extensions/SwiftStdlib/ArrayExtensions.swift Co-Authored-By: dylancfe15 <dylancfe15@gmail.com> * Removed the countElement() functions. Deleted the countElement() functions and kept only the getDuplicates(). * Deleted testCountElement() * Added extension 'duplicatedElement' Added `duplicatedElements() -> [Element]` get duplicated elements from an array. * Update ArrayExtensions.swift * Added 'duplicatedElements' extension Function to return duplicated element from the original array. * Added extension 'duplicatedElements' to Array 'duplicatedElements' will return duplicated elements from the original array * Edited CHANGELOG.md * Update CHANGELOG.md * Update ArrayExtensions.swift * Update ArrayExtensions.swift * Update ArrayExtensionsTests.swift * Update ArrayExtensions.swift * Update ArrayExtensions.swift * Update ArrayExtensions.swift * Update ArrayExtensionsTests.swift * Update ArrayExtensions.swift * Update ArrayExtensions.swift * Update CHANGELOG.md Co-Authored-By: dylancfe15 <dylancfe15@gmail.com> * Added extension 'duplicates' to Sequence A function for getting the duplicated elements in a sequence. * Added extension 'duplicates' to Sequence A function for getting the duplicated elements in a sequence. * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update ArrayExtensions.swift * Update ArrayExtensionsTests.swift * Update SequenceExtensionsTests.swift * Added extension `isLeapYear` to Date Added `isLeapYear` to check whether or not the year is a leap year. * Update CHANGELOG.md * Update DateExtensions.swift * Update DateExtensionsTests.swift * Update SequenceExtensions.swift Removed countedSet, instead, using a set and an array. * Update SequenceExtensions.swift
* Convert ISO region code into flag emoji * Fix tests for Linux
* Observe a single post of a notification * Remove old references to XCTestManifests files
* Added CGRect extensions and its tests * Define anchor as CGPoint instead of enum Co-authored-by: Guy Kogus <guy.kogus@gmail.com>
Refactor `centerTextAndImage(spacing:)`: so that the image position can be above the text
* String Safely subscript - out of bounds #815 * Updated CHANGELOG.md * 🚨 Fix SwiftLint issues * 👌 Updating code due to code review changes. * String Safely subscript - out of bounds #815 * Updated CHANGELOG.md * 🚨 Fix SwiftLint issues * 👌 Updating code due to code review changes. * 🚨 Fix SwiftLint issues * Refactored String subscript (safe substring) 👌 Updating code due to code review changes. * Update Sources/SwifterSwift/SwiftStdlib/StringExtensions.swift Co-Authored-By: Guy Kogus <guy.kogus@gmail.com> Co-authored-by: Guy Kogus <guy.kogus@gmail.com>
* Make CATransform3D swifty * Fix imports for test * Add rule for ignoring x, y, z for SwitLint identifier_name rule
* Fix project and tests * Remove unnecessary availability attributes * Fix test crashing when it fails
* Access/update RangeReplaceableCollection by index offsets This is especially useful for `String`s.
* NSAttributedString make public * Updated changelog * Update Tests/FoundationTests/NSAttributedStringExtensionsTests.swift Co-Authored-By: Guy Kogus <guy.kogus@gmail.com> * Test doesn't have any attributes * 👌🏼 Updated test case due to code review changes * Update Tests/FoundationTests/NSAttributedStringExtensionsTests.swift Co-Authored-By: Guy Kogus <guy.kogus@gmail.com> * Update Tests/FoundationTests/NSAttributedStringExtensionsTests.swift Co-Authored-By: Guy Kogus <guy.kogus@gmail.com> * 🚨 Removing linter warnings. * Update Tests/FoundationTests/NSAttributedStringExtensionsTests.swift Co-Authored-By: Guy Kogus <guy.kogus@gmail.com> * Update Tests/FoundationTests/NSAttributedStringExtensionsTests.swift Co-Authored-By: Guy Kogus <guy.kogus@gmail.com> Co-authored-by: Guy Kogus <guy.kogus@gmail.com>
…omLeft`, `bottomRight` (#835) * Add Unit-Tests for each anchor point get and set operation * Change `SpriteKitTests` file and enclosing class names to `SKNodeExtensionTest` * Add `CHANGELOG.md` entry
…le (#841) * Added new `+`, `+=`, `-` and `-=` operator extensions for tuple (width: CGFloat, height: CGFloat) * Removing semantically incorrect operator * Little arrangements
* Added WKWebView extensions * Refactoring tests * Adding Pod subspec for WebKit and section for WebKit Extensions in Readme Increasing WKWebView test expectation timeout * Replacing test url with https://example.com/ Handling failed events * Adding test for Dead URL String Co-authored-by: Guy Kogus <guy.kogus@gmail.com>
…rictions. (#844) * Refactored to remove deployment target version restrictions. * Added test for when the dark mode color is nil. * Updated UIColorExtensionsTests. * Make dark in UIColor(light:dark:) non-optional. Co-authored-by: Luciano Almeida <passos.luciano@outlook.com>
* CoreAnimation: Make CAGradientLayer extension public. * Update CHANGELOG.
* Added convenient wrapper to asyncAfter * Added unit test for asyncAfter * Added changes to changelog * Made minor changes Co-authored-by: Guy Kogus <guy.kogus@gmail.com>
Co-authored-by: Luciano Almeida <passos.luciano@outlook.com>
* Deprecated map(by:), compactMap(by:), filter(by:) * Removed tests for map(by:), compactMap(by:), filter(by:) Co-authored-by: Luciano Almeida <passos.luciano@outlook.com>
* - fixed: "".truncated crashed * Update StringExtensionsTests.swift * Update CHANGELOG.md
* Clean up code Optimise some function compilation times `CAGradientLayer.init` - add default values for `startPoint` and `endPoint`. * Updated CHANGELOG * Clean up forEachInParallel * Fix WKWebView tests * Clean code and fix DispatchQueue tests
Fork update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.