Posts

Post not yet marked as solved
6 Replies
3.1k Views
I've built a Framework which I would like to use it in other applications.I know the basics on including and using frameworks.The problem is I really have TWO Frameworks the Device Framework and the Simulator Framework.Is there a way to tell XCode to use the right Framework?
Posted
by Phred.
Last updated
.
Post not yet marked as solved
3 Replies
2.6k Views
Has anyone gotten @Environment(\.presentationMode) to work correctly on a device?When I try and use:self.presentation.value.dismiss()on a page pushed from a navigation link it works on the simulator but crashes on device.import SwiftUI import Combine struct ContentView: View { @State private var showModal = false @State private var showCamera = false var body: some View { NavigationView { Text("Hello World") .navigationBarTitle("", displayMode: .inline) .navigationBarItems( leading: NavigationLink( destination: ModalView(message: "Dismiss Push Test"), label: {Text("Push Page")}), trailing: Button("Show modal") { self.showModal = true }.sheet(isPresented: $showModal, onDismiss: { print(self.showModal) }) { ModalView(message: "Dismiss Modal view") } ) } } } struct ModalView: View { @Environment(\.presentationMode) var presentation let message: String var body: some View { NavigationView { Button(message) { self.presentation.value.dismiss() } .navigationBarItems(trailing: Button("Done") { self.presentation.value.dismiss() }) } } }
Posted
by Phred.
Last updated
.
Post marked as solved
1 Replies
260 Views
I have a published app. In the next version I added an action extension. This somehow changed the name of the IPA. Connect allows me to upload the IPA but does not recognize that it exists. I figured out how to force a change of name for the IPA before it is uploaded and now Connect sees it and starts "processing" it. But it disappears after a few minutes. How can I fix this? What is the right way of changing the IPA name?
Posted
by Phred.
Last updated
.
Post not yet marked as solved
0 Replies
253 Views
Is anyone else having an issue of random music starting to play from your iPhone?
Posted
by Phred.
Last updated
.
Post not yet marked as solved
3 Replies
3.9k Views
I am trying to do a basic TabbedView. The code below runs and when you tap each tab it updates to show the current selected page.The problem is when I uncomment the Binding in AView. That triggers an error in ContentView:$tabIndex is marked "ContentView.swift:14:31: Cannot convert value of type 'Binding<Int>' to expected argument type 'Binding<_>'"Until I uncomment the Binding the TabbedView is perfectly happy to accept a Binding<Int> but once I want to use that binding problem!Any ideas? Am I doing this all wrong?struct ContentView : View { @State var tabIndex: Int = 1 var body: some View { TabbedView(selection: $tabIndex){ AView().tabItemLabel( Text("Page A: \($tabIndex.value)") ).tag(0) AView().tabItemLabel( Text("Page B: \($tabIndex.value)") ).tag(1) AView().tabItemLabel( Text("Page C: \($tabIndex.value)") ).tag(2) } } }struct AView : View { // @Binding private var tabIndex: Int var body: some View { Text("Hello World ") } }
Posted
by Phred.
Last updated
.
Post not yet marked as solved
0 Replies
696 Views
I am getting the following when trying to Preview SwiftUI:invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun----------------------------------------failedToCodeSign: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun/Users/kentorimaru/Library/Developer/Xcode/DerivedData/OCR-asfeahxpzoiuutciaayxhqrtssyu/Build/Intermediates.noindex/Previews/OCR/Intermediates.noindex/OCR.build/Debug-iphonesimulator/OCR.build/Objects-normal/x86_64/ContentView.2.preview-thunk.dylib: the codesign_allocate helper tool cannot be found or used
Posted
by Phred.
Last updated
.
Post not yet marked as solved
2 Replies
565 Views
All of my available space is disappearing while I am trying to figure out a way to clear space on the drive.
Posted
by Phred.
Last updated
.