Posts

Post not yet marked as solved
1 Replies
257 Views
I just upgraded to 10.15.6 beta 3 then straight away I'm offered 10.16! There is no 10.16 on the dev website. When I try installing it says it needs another 7Gb. There is already 53Gb available, so what is going on here? I've also read that 10.16 is actually Bug Sur beta masquerading as Catalina and I haven't elected to beta test Big Sur so, again, what is going on?
Posted Last updated
.
Post marked as solved
4 Replies
1.9k Views
Accessing the isEditing property of environment value editMode leads to a compiler error.In the code below I'm getting 'Generic parameter 'S' could not be inferred' applied to the ButtonIf I remove && !mode?.isEditing it compiles OK. I've tried juggling things around, but it always finds some problem. It looks like a bug to me either in @Environment or ViewBuilder. Any suggestions?Here's the full struct:struct ProjectView: View { @Environment(\.editMode) var mode @State private var canAddProject = false @State private var showAlert = false var projects: FetchedResults var alert: Alert { Alert(title: Text("Write Now"), message: Text("Please enter a project name"), dismissButton: .default(Text("Dismiss"))) } var body: some View { NavigationView { List { if !canAddProject && !mode?.isEditing { Button("Add New Project") {} .onTapGesture { self.canAddProject.toggle() } } if canAddProject { AddProject(canAddProject: $canAddProject, showAlert: $showAlert) } ProjectList(projects: projects) } .listStyle(GroupedListStyle()) .navigationBarTitle(Text("Write Now")) .navigationBarItems(trailing: EditButton()) } .navigationViewStyle(StackNavigationViewStyle()) .alert(isPresented: $showAlert, content: { self.alert }) } }
Posted Last updated
.
Post not yet marked as solved
0 Replies
603 Views
I have the following code pattern: List { .... }.sheet(isPresented: self.$showModal) { SomeView(...) }How can I create a sheet that fits the contents. I've tried a number of things but they only change the frame size of the contents, not the sheet itself, so does anyone know how can I control the frame size of the sheet?(I pasted an example image here, but it disappeared when I posted the question - bug?)
Posted Last updated
.
Post marked as solved
2 Replies
1.3k Views
My app offers full functionality for a 14 day free trial. At the end of this the user can get continued use of the functionality via an in-app purchase. The app has been rejected because the app doesn’t allow the user to continue using the app in some (reduced?) way. They say it is unreasonable to terminate access to the app. What do others think?
Posted Last updated
.
Post not yet marked as solved
2 Replies
302 Views
I have created a helpbook and bundle. This is displaying correctly and can be searched, but none of the controls in the top left of the window work - they are all dimmed.I have searched the documentation, but can't find any reference to them (or the window itself). Does anyone know how these can be activated.
Posted Last updated
.