iOSウィジェットにURLを追加し、ユーザーがトレイン情報と運行情報にアクセスできるようにしました
This commit is contained in:
2
app.json
2
app.json
@@ -24,7 +24,7 @@
|
||||
"**/*"
|
||||
],
|
||||
"ios": {
|
||||
"buildNumber": "60",
|
||||
"buildNumber": "61",
|
||||
"supportsTablet": true,
|
||||
"bundleIdentifier": "jrshikokuinfo.xprocess.hrkn",
|
||||
"appleTeamId": "54CRDT797G",
|
||||
|
||||
@@ -145,6 +145,7 @@ struct DelayInfoWidgetView: View {
|
||||
)
|
||||
}
|
||||
}
|
||||
.widgetURL(URL(string: "jrshikoku://open/traininfo"))
|
||||
.containerBackground(for: .widget) {
|
||||
Color(.systemBackground)
|
||||
}
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
import ActivityKit
|
||||
import SwiftUI
|
||||
import UIKit
|
||||
import WidgetKit
|
||||
|
||||
@main
|
||||
struct JRWidgetBundle: WidgetBundle {
|
||||
var body: some Widget {
|
||||
ShortcutWidget()
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
FelicaBalanceWidget()
|
||||
}
|
||||
FelicaBalanceWidget()
|
||||
DelayInfoWidget()
|
||||
OperationInfoWidget()
|
||||
TrainFollowLiveActivity()
|
||||
|
||||
@@ -82,6 +82,7 @@ struct OperationInfoWidgetView: View {
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
|
||||
}
|
||||
}
|
||||
.widgetURL(URL(string: "jrshikoku://open/operation"))
|
||||
.containerBackground(for: .widget) {
|
||||
Color(.systemBackground)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user