Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

Commit

Permalink
removing private state (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
ay42 authored Feb 23, 2020
1 parent 512de56 commit 6548e52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 1 addition & 6 deletions Sources/Grid/Grid.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import SwiftUI

struct GridItem: Identifiable {
let view: AnyView
let id: AnyHashable
}

/// A view that arranges its children in a grid.
public struct Grid<Content>: View where Content: View {
@Environment(\.gridStyle) private var style
@State var itemsPreferences: [AnyHashable : GridItemPreferences] = [:]
let items: [GridItem]
@State private var itemsPreferences: [AnyHashable : GridItemPreferences] = [:]

public var body: some View {
GeometryReader { geometry in
Expand Down
6 changes: 6 additions & 0 deletions Sources/Grid/GridItem.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import SwiftUI

struct GridItem: Identifiable {
let view: AnyView
let id: AnyHashable
}

0 comments on commit 6548e52

Please sign in to comment.