Post

Replies

Boosts

Views

Activity

Reply to Why does my text label relative vertical position move when user transitions from landscape to portrait orientation?
You’re right! Definitely difficult to work with scrollviews and space elements and layout. I went through a lot of iterations of what I wanted to do for look and feel and decided I wanted to place my text label subviews using code rather than stacks and auto layout. I will try to give you a public link to my project on github as soon as I can.
Jun ’20
Reply to Why does my text label relative vertical position move when user transitions from landscape to portrait orientation?
Had a good 1-on-1 lab session with DTS this morning. They gave me a couple of different options to fix this. It’s gonna take some work so I have to decide which approach to use. One of the approaches is to use some of the new Xcode 12 Beta APIs for iOS 14 to replace my current approach to my detail view controller and instead use an advanced collection view that might make things much simpler and let the collection view API handle all the spacing.
Jun ’20
Reply to Aspiring Developer
I also highly recommend the following resources: App Development with Swift - https://books.apple.com/us/book/app-development-with-swift/id1465002990 Apple’s SwiftUi Tutorial - https://developer.apple.com/tutorials/swiftui/ Udemy iOS App Development, Swift, and SwiftUI courses. I like the courses by Mark Price of Devslopes, Nick Walter, and Dr. Angela Yu of the London App Brewery.
Jun ’20
Reply to What are best practices for implementing data persistence on a watch only app?
Ok. Since this is a watch only app and I don’t need to sync data with other devices, it sounds like using CloudKit is not necessary and I can use Core Data for local on-watch data persistence. What is the latest and greatest information I can reference for using Core Data for my situation (Xcode 12 beta, watch only watchOS 7 app, SwiftUI)? Is there a WWDC20 video session that covers my situation? Example code?
Jun ’20
Reply to How to Keep Complications Up To Date 100% SwiftUI Independent Watch App?
Well, I tried creating a new test project using Xcode 12 Beta and a Watch Only template for watchOS, and, except for the HostingController entry point being replaced by the App.swift entry point and the ExtensionDelegate.swift file being removed, it appears the new project is still a WatchKit app project. The project still has multiple targets including WatchKit App and WatchKit Extension targets. Therefore, it appears dealing with updating watch complications uses most/all of the same APIs that are used for the non-100% SwiftUI project template project from Xcode 11.
Jun ’20
Reply to Is it worth creating a new Watch Only project using Xcode 12 beta template vs. updating recently started watch only project from Xcode 11?
Well, I tried creating a new test project using Xcode 12 Beta and a Watch Only template for watchOS, and, except for the HostingController entry point being replaced by the App.swift entry point and the ExtensionDelegate.swift file being removed, it appears the new project is still a WatchKit app project. The project still has multiple targets including WatchKit App and WatchKit Extension targets. Therefore, I'm still not sure what additional benefit I'd gain starting with a Xcode 12 Beta 100% SwiftUI project template. Any insights would be welcome.
Jun ’20
Reply to Apple Watch App not Displaying Back "<" Button
I'm having a similar problem but with an independent watch app using Swift UI. The live preview in Xcode shows a back button on the detail screen and it allows me to return to the parent (content view) screen. However, when I run the same app on the watch simulator and on an actual Apple Watch Series 6, the back button doesn't appear and I can't navigate back to the parent view.
May ’21