Compare commits

..

No commits in common. "f8fc37d7e0f17b5e3d9fb33ad694d8be5141929e" and "ad94588b3c17a986ccb01bfa97545af21655ac93" have entirely different histories.

4 changed files with 4 additions and 31 deletions

View File

@ -24,31 +24,16 @@ struct SimpleEntry: TimelineEntry {
}
struct Sesame_WidgetEntryView : View {
@Environment(\.widgetRenderingMode)
var widgetRenderingMode
@Environment(\.widgetFamily)
var widgetFamily
var entry: Provider.Entry
var body: some View {
switch widgetRenderingMode {
default:
image.unredacted()
}
}
private var image: some View {
Image(systemSymbol: .lock)
.resizable()
.aspectRatio(contentMode: .fit)
.padding()
.fontWeight(.thin)
.widgetURL(URL(string: "sesame:///open")!)
.containerBackground(.green, for: .widget)
.widgetAccentable()
}
}

View File

@ -58,15 +58,6 @@
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E268E0802A85302000185913"
BuildableName = "Sesame-WidgetExtension.appex"
BlueprintName = "Sesame-WidgetExtension"
ReferencedContainer = "container:Sesame.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "88E197AB29EDC9BC00BF1D19"
@ -74,7 +65,7 @@
BlueprintName = "Sesame-Watch Watch App"
ReferencedContainer = "container:Sesame.xcodeproj">
</BuildableReference>
</MacroExpansion>
</BuildableProductRunnable>
<EnvironmentVariables>
<EnvironmentVariable
key = "_XCWidgetKind"

View File

@ -57,12 +57,9 @@ struct ContentView: View {
}
Picker("Connection type", selection: $coordinator.connectionType) {
Text(ConnectionStrategy.local.description).tag(ConnectionStrategy.local)
Text(ConnectionStrategy.remote.description).tag(ConnectionStrategy.remote)
Text(ConnectionStrategy.remoteFirst.description).tag(ConnectionStrategy.remoteFirst)
// ForEach(ConnectionStrategy.allCases, id: \.rawValue) { connection in
// Text(connection.description).tag(connection)
// }
ForEach(ConnectionStrategy.allCases, id: \.rawValue) { connection in
Text(connection.description).tag(connection)
}
}
.pickerStyle(.segmented)
.padding(.horizontal, 30)