@@ -85,46 +85,6 @@ public extension Drawer {
8585 self . _restingHeight = . init( initialValue: startingHeight ?? heights. wrappedValue. first!)
8686 self . content = content ( )
8787 }
88-
89- /// A bottom-up view that conforms to multiple heights
90- /// - Parameters:
91- /// - heights: The possible resting heights of the drawer
92- /// - startingHeight: The starting height of the drawer. Defaults to the first height marker if not specified
93- /// - content: The view that defines the drawer
94- @available ( * , deprecated)
95- init (
96- heights: [ CGFloat ] ,
97- startingHeight: CGFloat ? = nil ,
98- @ViewBuilder _ content: ( ) -> Content
99- ) {
100- self . _heights = . constant( heights)
101- self . _height = . init( initialValue: startingHeight ?? heights. first!)
102- self . _restingHeight = . init( initialValue: startingHeight ?? heights. first!)
103- self . content = content ( )
104- }
105-
106- // MARK: Deprecated Inits
107-
108- /// A bottom-up view that conforms to multiple heights
109- /// - Parameters:
110- /// - heights: The possible resting heights of the drawer
111- /// - startingHeight: The starting height of the drawer. Defaults to the first height marker if not specified
112- /// - content: The view that defines the drawer
113- @available ( * , deprecated)
114- init (
115- heights: [ CGFloat ] ,
116- startingHeight: CGFloat ? = nil ,
117- impact: UIImpactFeedbackGenerator . FeedbackStyle ? ,
118- @ViewBuilder _ content: ( ) -> Content
119- ) {
120- self . _heights = . constant( heights)
121- self . _height = . init( initialValue: startingHeight ?? heights. first!)
122- self . _restingHeight = . init( initialValue: startingHeight ?? heights. first!)
123- self . content = content ( )
124- if let impact = impact {
125- self . impactGenerator = UIImpactFeedbackGenerator ( style: impact)
126- }
127- }
12888}
12989
13090// MARK: Internal Init
0 commit comments