Skip to content

Commit

Permalink
swiftlint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Adobels committed Nov 22, 2023
1 parent bd8af45 commit 60c8cf6
Show file tree
Hide file tree
Showing 3 changed files with 240 additions and 240 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let package = Package(
],
products: [
.library(name: "UIViewKit", targets: ["UIViewKit"]),
// .library(name: "UIViewKitDevelopmentViews", targets: ["UIViewKitDevelopmentViews"])
// .library(name: "UIViewKitDevelopmentViews", targets: ["UIViewKitDevelopmentViews"])
],
targets: [
.target(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ extension UIViewController {
This method ensures that the view controller hierarchy is updated correctly when a child view controller is removed, maintaining the integrity of the view controller lifecycle which is described [here](https://developer.apple.com/library/archive/featuredarticles/ViewControllerPGforiPhoneOS/ImplementingaContainerViewController.html#//apple_ref/doc/uid/TP40007457-CH11-SW1)
- Parameters:
- child: The `UIViewController` instance to be removed from its parent view controller.
- child: The `UIViewController` instance to be removed from its parent view controller.
- Important: This method assumes that the `child` view controller is already added to a parent view controller. Calling this method on a view controller that is not a child of any parent will not have any effect.
*/
*/
public func ibRemove(child: UIViewController) {
child.willMove(toParent: nil)
child.view.removeFromSuperview()
Expand All @@ -46,10 +46,10 @@ extension UIViewController {
The removal process ensures a safe and clean detachment of the child view controller's view from the view hierarchy which is described [here](https://developer.apple.com/library/archive/featuredarticles/ViewControllerPGforiPhoneOS/ImplementingaContainerViewController.html#//apple_ref/doc/uid/TP40007457-CH11-SW1)
- Parameters:
- containerView: The UIView container from which the first subview, if it's a child view controller's view, will be removed.
- containerView: The UIView container from which the first subview, if it's a child view controller's view, will be removed.
- Important: This method does not perform any action if `containerView` does not have any subviews or if the first subview is not a child view controller's view.
*/
*/
public func ibRemove(from containerView: UIView) {
guard let childView = containerView.subviews.first else {
return
Expand Down
Loading

0 comments on commit 60c8cf6

Please sign in to comment.