iOSウィジェットにURLを追加し、ユーザーがトレイン情報と運行情報にアクセスできるようにしました

This commit is contained in:
harukinMBP
2026-03-31 12:10:07 +09:00
parent 9c926362a9
commit ad75dfe27c
4 changed files with 4 additions and 5 deletions

View File

@@ -24,7 +24,7 @@
"**/*"
],
"ios": {
"buildNumber": "60",
"buildNumber": "61",
"supportsTablet": true,
"bundleIdentifier": "jrshikokuinfo.xprocess.hrkn",
"appleTeamId": "54CRDT797G",

View File

@@ -145,6 +145,7 @@ struct DelayInfoWidgetView: View {
)
}
}
.widgetURL(URL(string: "jrshikoku://open/traininfo"))
.containerBackground(for: .widget) {
Color(.systemBackground)
}

View File

@@ -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()

View File

@@ -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)
}