Skip to content

Commit

Permalink
Let examples app build without using @testable
Browse files Browse the repository at this point in the history
  • Loading branch information
freysie committed Apr 20, 2023
1 parent b056d05 commit cc2cfbf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Examples/DatePickerExamplesApp.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import SwiftUI
import WatchKit
@testable import WatchDatePicker
import WatchDatePicker

// TODO: do something about the `NavigationView`-within-`TabView` situation

Expand Down Expand Up @@ -339,6 +339,17 @@ struct NavigationExamples: View {
}
}

extension View {
func watchStatusBar(hidden: Bool) -> some View {
toolbar {
ToolbarItem(placement: .confirmationAction) {
Button("", action: {})
.accessibilityHidden(true)
}
}
}
}

struct SystemTimeInputView: View {
@State var coordinator: Coordinator!
@State var timeInputView: AnyObject!
Expand Down

0 comments on commit cc2cfbf

Please sign in to comment.