Swiftpack.co - Package - trifork/TriforkSwiftExtensions

TriforkSwiftExtensions

Carthage compatible Swift Documentation Azure Pipelines

Framework with generic Swift extensions.

Installation

Carthage

github "trifork/TriforkSwiftExtensions" ~> 1.3

Documentation

The documentation is generated by Jazzy.

Generate

Run Jazzy in the repo root and commit the docs folder:

jazzy run

Install

[sudo] gem install jazzy

Contributing

  1. Fork
  2. Branch from master
  3. Develop and write unit tests.
  4. Commit with great messages.
  5. Push when you are done.
  6. Create a pull request.

If you need more guidance, then read this.

Happy contributing! 🎉

All documentation can be read here


TRIFORK

Github

link
Stars: 8

Dependencies

Used By

Total: 0

Releases

1.3.3 - 2020-03-24 16:26:59

🚀 Added support form SPM 👷‍♂ïļ Added convenience init for UIStackView

- 2019-11-12 13:51:46

ðŸĐš Added isNetworkError on Error (@kdvtrifork)

1.3.1 - 2019-07-18 11:27:36

0ïļâƒĢ UITextView.setTextContainerInsetToZero ✅ Result extensions. Handle results directly on the object with theResult.success and Result.failure closures. Example:

somethingThatProducesAResult()
   .success { 
      handleSuccess()
   }.failure {
      handleFailure()
}

... and return an empty Result instance by using .success() (it will pass a Void instance). 📜 Fixed bug in UIScrollView's scroll(toPage:, animated:) and added currentPage property. 📏 Added updateHeaderViewHeight to update header and footer height for UITableView âŦ Added round(toNearest: ) on FloatingPoint ðŸĪ“ Added toAlpha() on Bool

1.3.0 - 2019-04-23 08:09:09

🚀 Upgraded to Swift 5! #53 📅 Added new Date function to support component stuff #54 (@kdvtrifork)

1.2.0 - 2019-03-22 14:34:35

Bumped to 1.2.0 🎉

ðŸ’Ģ Breaking changes: â™ŧïļ UITableViewCell no longer implements the Reusable protocol, but still has a bunch of convenience extensions for registering and dequeuing. âšŦïļ UIView.circle() is deprecated and has been replaced by roundForHorizontalEdges() and roundForVerticalEdges() ðŸ•ĩðŸŧ‍♂ïļ String.allMatches(withRegularExpression:) is deprecated and replaced by String.matches(regEx:). The allMatches did not return the full match result, which is wrong! The matches(regEx:) will now return the full match on index 0 and then the included groups within it. ðŸ•ĩðŸŧ‍♂ïļ String.matches(withRegularExpression:) -> Bool is deprecated and replaced by String.isMatching(regEx:options:). The isMatching(regEx:options:) is not case insensitive as the matches(withRegularExpression:).

This version also includes: ↕ïļ UIEdgeInsets horizontal and vertical sum methods, to avoid e.g. inset.left + inset.right. ðŸĪš Improved the String slicin' ! 🕗 Added daysAgo on Date to get an integer based on DateComponents.

1.1.2 - 2019-02-19 08:17:20

ðŸĪš Slicin' 'n' trimmin' strings! ðŸĪ– Now with @trifork-bot enabled to keep things nice and clean.

1.1.1 - 2019-02-07 08:32:20

â™ŧïļ Easy register & dequeue methods for UITableView (@kdvtrifork ) 💄 Added text alignment option for StringFormatOption (#24 ) 📭 Added isNilOrEmpty for Collection (@kdvtrifork )

Happy coding! 🚀

1.1.0 - 2019-01-18 12:30:07

🆕 Upgraded to Swift 4.2 📄 Paging in UIScrollView - thanks @kdvtrifork !

1.0.12 - 2019-01-08 07:57:03

Added findFirstResponder on UIView

1.0.11 - 2019-01-03 12:11:24

Made range available on the new string formatting extensions. This should have been a part of the v. 1.0.10 - I published too early. ðŸĪ·ðŸŧ‍♂ïļ

Also added an appending function on Array

1.0.10 - 2019-01-02 09:47:37

Pretty string stuff!

Format your strings with arrays of enums values:

public enum StringFormatOption {
    case lineHeight(CGFloat)
    case lineSpacing(CGFloat)
    case font(UIFont)
    case textColor(UIColor)
    case letterSpacing(CGFloat)
}

1.0.9 - 2018-10-19 12:44:48

ðŸ”Ĩ✉ïļ isEmail will nolonger accept strings with a beginning of a valid email postfixed by garbage. E.g. "this.is.my@valid.email...@with@A@lot@ofgarbage"

1.0.8 - 2018-10-04 08:55:52

✉ïļ Improvement on isEmail.

Thanks @jhntrifork !

1.0.7 - 2018-10-02 13:04:42

ðŸ’Ē Find that midPoint in your CGRect! 📜 Never miss the scrollIndicatorInsets when setting content insets!

Thanks @kimdv !

1.0.6 - 2018-09-06 05:34:24

🔒 LAContext biometric type.

1.0.5 - 2018-08-23 05:52:03

🔝 View controller

1.0.4 - 2018-08-14 12:48:17

Bug fixes ðŸĪ·ðŸŧ‍♂ïļ

1.0.3 - 2018-07-23 09:18:46

Watchout for warewolves! midnightDate was added to the Date extension 🌕🐚

1.0.2 - 2018-07-17 09:14:12

Fix all the open issues ðŸ‘ĻðŸŧ‍🚀🚀🌕

(And added a little surprise ðŸĨ§ðŸ˜‹)

- 2017-12-14 08:34:44

Encodables 🕚

- 2017-10-27 09:27:21

Decided to bump to version 1.0.0 😎 🎉

  • NSMutableAttributedString can be initialised with line spacing.

- 2017-09-25 10:32:22

Default URL encoding.

- 2017-09-13 12:56:27

Added function to get values of query parameters in URL 🎉

- 2017-08-29 08:07:43

Added new extensions:

  • Bundle 0ïļâƒĢ.0ïļâƒĢ.5ïļâƒĢ
  • UIDevice ðŸ“ą
  • UIView 🌅
  • UIStackView 📚

Also added a TSELogger that handles all log messages. This allows the developer to tap into the logging and handle potential errors from the framework ðŸšŦ🐞

- 2017-08-28 14:34:28

Added new class extensions inspired by JHN's old extensions:

  • Data 0ïļâƒĢ1ïļâƒĢ
  • Date 🕒
  • Double ✌ðŸŧ
  • Float â›ĩïļ
  • String ðŸ”Ī
  • UIAlertController ðŸšĻ
  • UIViewController ðŸ“ą
  • URL 🌍

Some of the existing extensions was also updated based on JHN's extensions:

  • Array 🔗
  • Optional❓

- 2017-08-25 09:41:54

🆕 New shiny Optional extension by KTV 🐞 Bug fix on removeElement in the Array extension.

- 2017-08-24 09:37:45

  • Fixed failing tests for iOS9
  • Now works with Travis! 💊ðŸŧ

- 2017-08-23 09:41:44

First version of the framework ☀ïļ