最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

swiftui - Widget is missing in iOS 15-18 - Stack Overflow

programmeradmin0浏览0评论

I created a widget with WidgetKit, it works fine when I run the application from Xcode on the simulator, but it does not find this widget on a real device.

Maybe someone will tell me why? I tested on real devices with iOS 15.8.3, 18.1.

I tried build on another real device, but I got the same issue.

There my code:

import WidgetKit
import SwiftUI

struct Provider: TimelineProvider {
    func placeholder(in context: Context) -> SimpleEntry {
        SimpleEntry(date: Date(), emoji: "
发布评论

评论列表(0)

  1. 暂无评论