Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Oct 16, 2024
1 parent 52a32d5 commit 5f91264
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/SwiftUISupportLayout/Anchoring.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import SwiftUI

#if DEBUG
// still in development

#Preview("Using Aligment guide") {

Rectangle()
Expand All @@ -13,7 +16,7 @@ import SwiftUI

extension View {

public func anchoring(@ViewBuilder content: () -> some View) -> some View {
internal func anchoring(@ViewBuilder content: () -> some View) -> some View {
overlay(alignment: .topTrailing) {
content()
.alignmentGuide(.top) { d in
Expand All @@ -26,3 +29,5 @@ extension View {
}

}

#endif

0 comments on commit 5f91264

Please sign in to comment.