Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6eddf32
Add support for snapping to views representing root UIViewControllers…
Adobels Sep 2, 2025
049e45c
Change color of frame
Adobels Sep 2, 2025
0af9c83
Delete IBPreview namespace
Adobels Sep 2, 2025
6381c8b
Add support for center constraint which
Adobels Sep 2, 2025
bdcbf44
Add ContainerView for embeding View Controllers like in Storyboards
Adobels Sep 2, 2025
aa9f755
Improve embeding to be aworkable in view definition phase
Adobels Sep 2, 2025
ac10530
Add auto-closure for ibEmbed method
Adobels Sep 2, 2025
03c713e
Add support for building a view controller with closure for ibEmbed m…
Adobels Sep 2, 2025
0d837b9
Add IB prefixes to Vertical and Horizontal Stacks convenience maker f…
Adobels Sep 2, 2025
ba39a0a
Add support for for-loop expressions in ibSuviews
Adobels Sep 2, 2025
6a6ee3a
Testing Simpler Preview controller
Adobels Sep 2, 2025
ff05a36
Imrove FreeForm and SizeThatFits Previews, Add Representable View Con…
Adobels Sep 2, 2025
ebc195f
Fix missing public on init methods of RepresentableControllers
Adobels Sep 2, 2025
ea15b4e
Fix FreeForm is not updating size
Adobels Sep 2, 2025
0f5ca5c
Add available keyboard for PreviewRepresentable types, Add support Sw…
Adobels Sep 3, 2025
6823123
Add support for SwiftUI Views maker in IBPreviewFreeForm
Adobels Sep 3, 2025
b0d7b57
Add frame argument to UIStackView convenience init method
Adobels Sep 3, 2025
47e644f
Move Self constraint for UIViewDSL to protocol definition which is mo…
Adobels Sep 3, 2025
4efb036
Add umbrela for UIKit and SwiftUI with export to client
Adobels Sep 3, 2025
089b5b6
Add constraint on ibOutlet owner to be AnyObject
Adobels Sep 3, 2025
ad96675
Add explicit MainActor to UIViewDSL
Adobels Sep 3, 2025
6a144b1
Rename author to full name
Adobels Sep 3, 2025
c2c88cb
Delete .h file
Adobels Sep 3, 2025
4a631f1
Add missing MainActor
Adobels Sep 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// NSObjectProtocol+ibApply.swift
// UIViewKit
//
// Created by blz on 22/08/2025.
// Created by Blazej SLEBODA on 22/08/2025.
//

import Foundation
Expand Down
4 changes: 4 additions & 0 deletions Sources/UIViewKit/IBConstraints/IBConstraints.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public final class IBConstraints {
constraints.append(view.topAnchor.constraint(equalTo: (target as? UILayoutGuide)?.topAnchor ?? (target as! UIView).topAnchor, constant: value))
case .bottom(let value):
constraints.append(view.bottomAnchor.constraint(equalTo: (target as? UILayoutGuide)?.bottomAnchor ?? (target as! UIView).bottomAnchor, constant: value))
case .center:
constraints.append(view.centerXAnchor.constraint(equalTo: (target as? UILayoutGuide)?.centerXAnchor ?? (target as! UIView).centerXAnchor))
constraints.append(view.centerYAnchor.constraint(equalTo: (target as? UILayoutGuide)?.centerYAnchor ?? (target as! UIView).centerYAnchor))
case .centerX(let value):
constraints.append(view.centerXAnchor.constraint(equalTo: (target as? UILayoutGuide)?.centerXAnchor ?? (target as! UIView).centerXAnchor, constant: value))
case .centerY(let value):
Expand Down Expand Up @@ -66,6 +69,7 @@ public final class IBConstraints {
case right(CGFloat)
case top(CGFloat)
case bottom(CGFloat)
case center
case centerX(CGFloat)
case centerY(CGFloat)
case leading(CGFloat)
Expand Down
44 changes: 0 additions & 44 deletions Sources/UIViewKit/IBPreviews/IBPreview+FreeFormView.swift

This file was deleted.

This file was deleted.

41 changes: 0 additions & 41 deletions Sources/UIViewKit/IBPreviews/IBPreview+FullScreenView.swift

This file was deleted.

This file was deleted.

45 changes: 0 additions & 45 deletions Sources/UIViewKit/IBPreviews/IBPreview+SizeThatFitsView.swift

This file was deleted.

13 changes: 0 additions & 13 deletions Sources/UIViewKit/IBPreviews/IBPreview.swift

This file was deleted.

Loading