Skip to content

Conversation

gurgeous
Copy link
Contributor

Loads a UIView of a particular type from a nib file. See #879.

Checklist

  • I checked the Contributing Guidelines before creating this request.
  • New extensions are written in Swift 5.0.
  • New extensions support iOS 10.0+ / tvOS 9.0+ / macOS 10.10+ / watchOS 2.0+, or use @available if not.
  • I have added tests for new extensions, and they passed.
  • All extensions have a clear comments explaining their functionality, all parameters and return type in English.
  • All extensions are declared as public.
  • I have added a changelog entry describing my changes.

@codecov
Copy link

codecov bot commented Jul 21, 2020

Codecov Report

Merging #885 into master will increase coverage by 0.03%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #885      +/-   ##
==========================================
+ Coverage   92.88%   92.92%   +0.03%     
==========================================
  Files         100      100              
  Lines        3443     3448       +5     
==========================================
+ Hits         3198     3204       +6     
+ Misses        245      244       -1     
Flag Coverage Δ
#ios 95.67% <80.00%> (+0.03%) ⬆️
#macos 82.94% <ø> (ø)
#tvos 93.67% <80.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
Sources/SwifterSwift/UIKit/UIViewExtensions.swift 83.60% <80.00%> (+0.74%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6756b2e...c843329. Read the comment docs.

@SwifterSwiftBot
Copy link

SwifterSwiftBot commented Jul 21, 2020

4 Messages
📖 Thank you for submitting a pull request to SwifterSwift. The team will review your submission as soon as possible.
📖 iOS: Executed 691 tests, with 0 failures (0 unexpected) in 17.742 (19.806) seconds
📖 tvOS: Executed 653 tests, with 0 failures (0 unexpected) in 3.670 (4.047) seconds
📖 macOS: Executed 513 tests, with 0 failures (0 unexpected) in 4.619 (4.910) seconds

Generated by 🚫 Danger

@LucianoPAlmeida
Copy link
Member

CI is failing on TVOS Build, can you take a look @gurgeous? :)

@gurgeous
Copy link
Contributor Author

I believe this is fixed. The loadFromNib test uses UITableViewCell.xib, so that will only work on iOS.

@LucianoPAlmeida LucianoPAlmeida requested a review from guykogus July 23, 2020 01:19
gurgeous and others added 2 commits July 23, 2020 21:14
Co-authored-by: Luciano Almeida <passos.luciano@outlook.com>
Copy link
Member

@LucianoPAlmeida LucianoPAlmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gurgeous
Copy link
Contributor Author

Sounds like we're good to go, then. Should I resolve and merge? LMK

omaralbeik
omaralbeik previously approved these changes Jul 27, 2020
Copy link
Member

@omaralbeik omaralbeik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Co-authored-by: Guy Kogus <guy.kogus@gmail.com>
@gurgeous gurgeous dismissed stale reviews from omaralbeik and LucianoPAlmeida via a8e1697 July 27, 2020 17:32
Co-authored-by: Guy Kogus <guy.kogus@gmail.com>
guykogus
guykogus previously approved these changes Jul 30, 2020
@LucianoPAlmeida LucianoPAlmeida merged commit 673d395 into SwifterSwift:master Aug 2, 2020
nasircsms pushed a commit to nasircsms/SwifterSwift that referenced this pull request Aug 26, 2020
* 'master' of https://github.com/SwifterSwift/SwifterSwift: (79 commits)
  Helper functions for scrolling to the edges or by page of a scroll view (SwifterSwift#888)
  Add XCTest extension for comparing Color objects (SwifterSwift#889)
  Fix swiftlint error (SwifterSwift#894)
  Bump kramdown from 2.1.0 to 2.3.0 (SwifterSwift#891)
  Added note for UIView.addShadow() (SwifterSwift#890)
  loadFromNib(withClass) (SwifterSwift#885)
  constraint finders (widthConstraint, heightConstraint, leadingConstraint, trailingConstraint, topConstraint, bottomConstraint) (SwifterSwift#886)
  added String.regexEscaped (SwifterSwift#883)
  Make √ generic for FloatingPoint values (SwifterSwift#880)
  Update UITextField extensions (SwifterSwift#878)
  Added `masksToBounds` (IBInspectable) extension (SwifterSwift#877)
  Reinstate debounce function (SwifterSwift#869)
  `RandomAccessCollection`/`Collection` generalisations (SwifterSwift#863)
  Added HKActivitySummary extensions (SwifterSwift#875)
  Added new method for easily instantiating a view controller from a storyboard (SwifterSwift#860)
  Clean up code (SwifterSwift#864)
  fixed "".truncated crashed (SwifterSwift#866)
  Deprecated map(by:), compactMap(by:), filter(by:) (SwifterSwift#862)
  Overloaded 'contains' operator for string regex matching (SwifterSwift#858)
  Added convenient wrapper to asyncAfter (SwifterSwift#859)
  ...

# Conflicts:
#	Sources/SwifterSwift/AppKit/NSColorExtensions.swift
#	Sources/SwifterSwift/AppKit/NSImageExtensions.swift
#	Sources/SwifterSwift/AppKit/NSViewExtensions.swift
#	Sources/SwifterSwift/CoreGraphics/CGColorExtensions.swift
#	Sources/SwifterSwift/CoreGraphics/CGFloatExtensions.swift
#	Sources/SwifterSwift/CoreGraphics/CGPointExtensions.swift
#	Sources/SwifterSwift/CoreGraphics/CGSizeExtensions.swift
#	Sources/SwifterSwift/Foundation/NSAttributedStringExtensions.swift
#	Sources/SwifterSwift/SwiftStdlib/StringExtensions.swift
#	SwifterSwift.xcodeproj/project.pbxproj
#	Tests/AppKitTests/NSColorExtensionsTests.swift
#	Tests/SwiftStdlibTests/StringExtensionsTests.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants