Post

Replies

Boosts

Views

Activity

can someone explain this Apple tutorial step?
I'm new to Apple watch mainly because I am trying to develop a companion app. New as a user and a developer for Apple Watch. I'm following an official Apple tutorial, but it seems to make a lot of assumptions. App groups Complications (horrible choice of terminology?) In the "Update Current Complications from iOS apps" step, I have no idea how to do what it's saying. https://developer.apple.com/documentation/watchconnectivity/using_watch_connectivity_to_communicate_between_your_apple_watch_app_and_iphone_app How do I choose a "Modular" watch face? What constitutes a "Modular" watch face? I deep pressed the current (default) face and it went into an edit mode, but swiping right didn't do anything. Swiping left offered more options, but I don't think it aligns with what it's saying to do. Stuck at 1 & 2 Stuck at 1 & 2
3
0
906
Jan ’22
How to do multiple image anchoring/alignment
I'm new to SwiftUI, and struggling to figure out what seems like should be a very easy thing to do. Let's say I have a HStack with two images. I want one image to always be anchored to the top left of the area and one images to always be anchored to the top center. I think most peoples' first thought is "easy, just add a Spacer() after the second image." That doesn't keep the center image centered. I have resorted to making two VStacks inside a ZStack, and each VStack has one image with a Spacer() below it to make the images align at the top like I want, and the VStack for the top-left image has an HStack inside so I can add a Spacer() to force it to align left. This seems extremely hacky just to have two images with two basically anchoring points, and isn't very flexible as far as putting it into a new swift view class to modularize it since the whole thing relies on the full height of the screen.
3
0
2.9k
Jan ’22
Accessing classes from parent groups - not allowed??
As far as I understand it, "Groups" in Xcode are simply a way to organize your project's files. However, I have found that classes in groups can't access the classes that aren't in the same group or children of that group. This makes no sense to me. Example: Group A -ClassA Group B -ClassB I want to declare: class ClassA: ClassB but I get the error "Cannot find type 'ClassB' in scope" However, if I move ClassB into Group A, it works. Is this a bug?
6
0
1.3k
Jan ’22
can someone explain this Apple tutorial step?
I'm new to Apple watch mainly because I am trying to develop a companion app. New as a user and a developer for Apple Watch. I'm following an official Apple tutorial, but it seems to make a lot of assumptions. App groups Complications (horrible choice of terminology?) In the "Update Current Complications from iOS apps" step, I have no idea how to do what it's saying. https://developer.apple.com/documentation/watchconnectivity/using_watch_connectivity_to_communicate_between_your_apple_watch_app_and_iphone_app How do I choose a "Modular" watch face? What constitutes a "Modular" watch face? I deep pressed the current (default) face and it went into an edit mode, but swiping right didn't do anything. Swiping left offered more options, but I don't think it aligns with what it's saying to do. Stuck at 1 & 2 Stuck at 1 & 2
Replies
3
Boosts
0
Views
906
Activity
Jan ’22
How to do multiple image anchoring/alignment
I'm new to SwiftUI, and struggling to figure out what seems like should be a very easy thing to do. Let's say I have a HStack with two images. I want one image to always be anchored to the top left of the area and one images to always be anchored to the top center. I think most peoples' first thought is "easy, just add a Spacer() after the second image." That doesn't keep the center image centered. I have resorted to making two VStacks inside a ZStack, and each VStack has one image with a Spacer() below it to make the images align at the top like I want, and the VStack for the top-left image has an HStack inside so I can add a Spacer() to force it to align left. This seems extremely hacky just to have two images with two basically anchoring points, and isn't very flexible as far as putting it into a new swift view class to modularize it since the whole thing relies on the full height of the screen.
Replies
3
Boosts
0
Views
2.9k
Activity
Jan ’22
Accessing classes from parent groups - not allowed??
As far as I understand it, "Groups" in Xcode are simply a way to organize your project's files. However, I have found that classes in groups can't access the classes that aren't in the same group or children of that group. This makes no sense to me. Example: Group A -ClassA Group B -ClassB I want to declare: class ClassA: ClassB but I get the error "Cannot find type 'ClassB' in scope" However, if I move ClassB into Group A, it works. Is this a bug?
Replies
6
Boosts
0
Views
1.3k
Activity
Jan ’22