Post

Replies

Boosts

Views

Activity

Reply to .toolbar modifier positions buttons at the bottom of the view
Xcode 12 beta 2 has also fixed the issue with the disappearing button. If the ToolbarItem wraps the button, they can be position in their expected positions and remain in place despite tapping either button. Now, all that remains to be fixed is the "normal" toolbar implementation. Both buttons can be placed within the #if block if desired without affecting functionality.             .toolbar {                 #if os(iOS)                 ToolbarItem(placement: ToolbarItemPlacement.navigationBarLeading) {                     EditButton()                 }                 #endif                 ToolbarItem(placement: ToolbarItemPlacement.navigationBarTrailing) {                     Button("Add", action: makeSandwich)                 }             }
Jul ’20
Reply to .toolbar modifier positions buttons at the bottom of the view
Xcode 12 beta 2 now "acknowledges" the Edit button in the above code as a tool bar item (at the top of the view) but persists to render the Add button at the bottom of the view. Whether the two buttons are located within the #if block or note, matters not a jot. Furthermore, all buttons remain in view despite tapping on either one. This is progress in the correct direction.
Jul ’20
Reply to How to handle URL callbacks with new SwiftUI @main startup?
@bfad I have also seen this message regarding similar iOS 14 features that run fine on the beta simulators (running iOS 14). The corresponding macOS features, intuitively, will be designed for BigSur. You rightly point out 10.16 < 11 and I am guessing that for this reason, there is an incompatibility and hence the reason the macOS cannot find the member onOpenURL. I hope that helps.
Jul ’20
Reply to measurementFormatter.string not returning spurious information
Ok, this issue was resolve by as follows. First a getCaffeineAmount method is created in the CaffeineAmountView:     func getCaffeineAmount(_ mass: Measurement&lt;UnitMass&gt;) -> String {         let measurementFormatter = MeasurementFormatter() &#9;&#9;&#9;&#9;measurementFormatter.unitOptions = .providedUnit         return measurementFormatter.string(from: mass)     } Then from the main VStack in the same struct, instead of the Text view, Text(measurementFormatter.string(from: data.caffeineAmount)) the following method call is made from a Text view: Text(getCaffeineAmount(data.caffeineAmount)) Any suggestions are welcome, regarding a different approach as I am certain there are many.
Jun ’20
Reply to Session schedule
Thank you for your reply. The videos did appear at the time of broadcast, but for planning purposes it wasn't possible to set a schedule to watch a particular track of events as WWDC was unfolding. I am thinking that would have been possible at an in person event, so that one could focus on a particular technology or set of technologies. Now, the exercise is straight forward as the content is available on demand.
Jun ’20