Post

Replies

Boosts

Views

Activity

Reply to Impossible to upload screenshot for Mac app auto-renewing subscription in-app-purchase item in iTunes Connect
Another note on this ridiculous issue... even if your app is displayed in portrait mode, the app review image has to be landscape. So, I had to rotate my screenshot 90 degrees for the portal to accept it. 1920x1080 instead of 1080x1920. [edit] Ok, nevermind that. It appeared to take my 1920x1080 image (it showed in the preview box), but when clicking Save, the top of the form said I need to upload a valid preview image, so it didn't actually accept it. [edit 2] Inexplicably, uploading at 1242x2208 was accepted.
Apr ’21
Reply to How to do multiple image anchoring/alignment
This is how I'm currently doing it. There's a separate VStack just for the top right and top left elements ("007LogoWhite" and PancakeMenu) struct ContentView: View {   var body: some View { ZStack { GeometryReader { geometry in Image("BackingTexture100") .resizable() .aspectRatio(contentMode: .fill) .scaledToFill() .ignoresSafeArea() } // Top left & right VStack { HStack { Image("007LogoWhite") .resizable() .scaledToFit() .frame(width: 120, height: 40, alignment: .topLeading) Spacer() PancakeMenu() } Spacer() } .padding(.horizontal, 8) // Horizontally centered from top to bottom of screen. VStack { Image("MI6logo") DB5LogoTitle() .padding(.top) Spacer() } .padding(.horizontal, 8) }   } } Here's what it loooks like so far... obviously it will have more things in the second VStack for more content under the DB5LogoTitle() element.
Jan ’22
Reply to How to do multiple image anchoring/alignment
I think I found the answer I wanted in "overlay", which allows anchoring additional items within the space of another item, at corners or centered along edges. // // MainView.swift // DB5 Remote // // Created by Todd Gillissie on 1/10/22. // import SwiftUI struct MainView: View { @State private var playingVideoId = "" @State private var mode = AppMode.MODIFICATIONS   var body: some View { ZStack { GeometryReader { geometry in Image("BackingTexture100") .resizable() .aspectRatio(contentMode: .fill) .scaledToFill() .ignoresSafeArea() } // Top left & right // VStack // { // HStack { // Image("007LogoWhite") // .resizable() // .scaledToFit() // .frame(width: 120, height: 40, alignment: .topLeading) // Spacer() // // PancakeMenu() // } // Spacer() // } // .padding(.horizontal, 8) // Horizontally centered from top to bottom of screen. VStack { Image("MI6logo") .padding(.bottom, 6.0) DB5LogoTitle(mode: mode) // switch statements don't work in views for some reason.. if (mode == AppMode.MODIFICATIONS) { ModificationsView() } else if (mode == AppMode.VIDEOS) { VideoList() } else if (mode == AppMode.CREDITS) { Rectangle().foregroundColor(.yellow) } } .overlay(alignment: .topLeading) { Image("007LogoWhite").resizable() .scaledToFit() .frame(width: 120, height: 40, alignment: .topLeading) } .overlay(alignment: .topTrailing) { PancakeMenu() } .padding(.horizontal, 8) if (playingVideoId != "") { VStack { Spacer() PlayingVideo() } .padding(.horizontal, -4.0) .ignoresSafeArea() } }   } } enum AppMode: Int { case MODIFICATIONS = 0 case VIDEOS = 1 case CREDITS = 2 } struct MainView_Previews: PreviewProvider {   static var previews: some View {     MainView()   } }
Jan ’22
Reply to Accessing classes from parent groups - not allowed??
I have figured this out. What's not obvious is that this project has a Watch Extension target. I am sharing many of the classes between the main iPhone target and the watch target, which requires checking the box for the watch target when the class is under the phone project structure. I had forgotten to check the box for the watch to have access to the new class BleMessenger.swift. It would be extremely helpful if the error message was more specific, but I guess it's just something to remember.
Jan ’22
Reply to Xcode 13.3 cycle in dependencies between targets
I'm seeing the same issue, with a Unity-generated project. I don't think moving headers around in the project is a solution for Unity-generated projects, since the whole project gets regenerated every time I build. I can just do a "Clean Build Folder" and then it builds again without having to regenerate the whole project. I hope Apple fixes this issue, but I have low hopes that they're paying attention.
Mar ’22