Posts

Post not yet marked as solved
0 Replies
332 Views
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.
Posted
by mightyone.
Last updated
.
Post not yet marked as solved
1 Replies
696 Views
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?
Posted
by mightyone.
Last updated
.