Post

Replies

Boosts

Views

Activity

iOS14 Widgetkit widgetfamily only medium!!
I am using xcode Version 12.1 Widgets are added by size to the app being serviced, but only the medium size is shown. Below is the code. var entry: Provider.Entry   @Environment(\.widgetFamily) var family   var body: some View {     VStack {       Text(entry.date, style: .time)       switch family {       case .systemSmall:         Text("Small")       case .systemMedium:         Text("Medium")       case .systemLarge:         Text("Large")       default:         Text("Some other WidgetFamily in the future.")       }     }   } and It works well when it comes to a new project, but why does this work in an existing app?
1
0
835
Oct ’20
Can I use it with ios/watchos healthkit?
The ios app stores the number of dumbbells via Bluetooth and stores calories in Apple Health. During exercise, I want to check the heart rate on the user's Apple Watch and show it on the iPhone app and the Apple Watch app. To turn on the heart rate on the Apple Watch, you must also turn on the exercise function on the Apple Watch. Then, the exercise data is saved in Apple Health on the iPhone and saved twice on the Apple Watch. I am wondering if there is a way to use the iPhone to Apple Health and the Apple Watch to store heart rate without overlapping.
0
0
397
Nov ’20