How to mimic the stock Calendar app on watchOS? - swift

The stock calendar app on the Apple Watch has some UI elemnts I would be interested in implementing in my app. It shows each event in its own view and when scrolling up (with touch or the crown) the view is animated up and the next event is visible below.
Is this a default implementation or is it a modification of the WKInterfaceTable?
Thanks!
EDIT
After some testing it looks like they use a WKInterfacePicker with a style of 'Stack'. However, from what I understand only images can displayed in the WKPickerItem in this mode. Is that correct?

Related

Trying to reproduce the workout activity selection method used in the Workout app on Apple Watch

So far I've managed to populate a picker with an array and set it to stack style which gives me the display but how can I tap on a row in a picker to select it?
Is there a way to use a button which covers the picker?
Or am I going about this completely wrong?
To get it close to the Workout app interface, you'll want to use the new SwiftUI framework if you're okay with it being it in beta and with targeting watchOS 6. This is done through a List with the carousel style, which is discussed in the WWDC session SwiftUI on watchOS.

how to handle iPhone calendar event changes when EventKitUI screens are being displayed?

The EventKit (programming guide) covers how to handle things in your app code when the underlying iPhone calendar event data changes, via observers. ok.
What do you do however if you are in the middle of displaying an Apple EventKitUI screen (i.e. not your own code) as part of your application? How do you invalidate/give a user message, or auto-refresh the data, if the underlying event data changes. For example if you jump out of your app, go to calendar make a change, then jump back into your app which is still at the EKUI "display" or "edit" event screen?
answer I got elsewhere is that these EKEvent views roll themselves back (based on pop'ing from the nav controller) automatically if the data becomes stale...

wanted to implement brightness bar in ipad app

hey guys,
i am working on a ebook reader and in its course i wanted to allow the reader to reduce/increase the brightness accordingly. what i tried is ,placed a UISlider and gave the values as 0 and 1 for min and max respectively. I placed a imageView on the main view and aplied alpha component to the uiview which responds to the slider accordingly.
i succeeded but i know that it doesn't save the battery life of the ipad.
are there any predefined methods or framework which enables us to alter the brightness of the device.
thank you in advance
There is a private api call GSEventSetBacklightLevel(float). But if you are planning to submit this to the app store it will get rejected.
There is now of doing this via the public API, you could use, like you stated, a semi tranparent view with a black background over the window to make it look like you can control the brightness.,

How to make an app like VEVO?

The VEVO app on iPhone sets a great sample for video oriented apps. I'm working on something similar, and I want to now how to customize the video controller as VEVO does.
My current app is based on the built-in controller. It's OK, but I want to make it tremendous.
I've attached a screenshot. How to implement the progress bar?
you can add subviews to MPMoviePlayerController's view property such as custom buttons and everything.
Note: if there is something specific about the app you are talking about, i'd suggest posting a screenshot so others can see what you are talking about.

iphone custom datepicker

Is there any datepicker UI elements that I can use on my iphone application? Native one is found to be too big.
Maybe the right question is why is it too big? Apple has done a pretty good job of making a set of controls that apply for most circumstances, look stylish, and are usable by the user.
The default control is the size of the iPhone keyboard, and it was made this way for a very good reason: all elements are easily viewable and selectable by touch. If you have a lot of UI elements making life difficult, consider displaying the selected date/time in a label and edit it in a modal dialog.