Add a shortcut at the top of the picture in the Apple Watch storyboard

So I am trying to make an apple viewer app. I noticed that elements on a storyboard can only be positioned next to each other using a group. But the UI I want requires a background image and a shortcut on top of it. How can I? Is it possible to do this in an Apple Watch storyboard?

I do not own this art. I found this on the internet but it looks like what I want to achieve

+3


source to share


1 answer


Try the following:

  • To create a group
  • Set Background group in UI Builder
    • The background image to be displayed below the label
    • By default for a group, you will basically create a "visual container". In your example, this will be an image containing a coin with a rectangle on the right.
  • Add shortcut to group
  • Place and customize the shortcut within the group according to your needs.



You cannot achieve this effect by simply placing 2 views in one supervision and positioning them correctly, because there is no such concept in WatchKit. Elements within a group are always automatically positioned horizontally / vertically based on the group's settings at the same z-axis level (no "viewing depth").

+6


source







All Articles