I am making an app for myself that would show the current state of the Magic Keyboard battery state. Can someone give me an hint or examples of what to do? Thanks.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
I have been trying to change the default color of the NavigationView in the AppDelegate file and am unable to. Is it the code, or me? Using Xcode 13, Beta 1.
I got the code from hackingwithswift.com.
Here's the code:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Change Color of Navigation Bar:
let configuration = UINavigationBarAppearance()
configuration.configureWithOpaqueBackground()
configuration.backgroundColor = .systemPurple
return true
}
Thank you.
Dan Uff
Hi,
I have a list of items on the iPhone that I want to share on the watch. The list would be too big to have the actual file on the watch, so, what's the best way to share the list from the iPhone, and could someone give me a step by step on what to do or point me to a good document?
Thanks,
Dan Uff
Hi,
I added an Apple Watch target to an existing app using SwiftUI and Xcode 13 (13A233) and the Canvas shows the first view controller correctly (an Apple Watch) but when I add additional VCs, the canvas shows an iPhone. I recreated the additional VC making sure I had WatchOS selected and got the same thing.
Is anyone else having this problems with this? Any work arounds?
Thanks,
Dan Uff
Hi,
I have a small Apple Watch game that someone downloaded and liked a lot. That same individual asked me to make a Mac version of the same app, which I am willing to do.
Should I add the app to the current Apple Watch version, or make a stand alone version?
Thanks,
Dan Uff
Hi,
When I try to install a app that I want to test on an iPhone 13, I get the following error:
`
Showing All Messages
The file "/Users/danuff/Documents/CPS/iOS/iOS 15/Projects (Current)/iPhone : iPad/SwiftUI/General/DVP/DVP/DVP.entitlements" could not be opened. Verify the value of the CODE_SIGN_ENTITLEMENTS build setting for target "DVP" is correct and that the file exists on disk.
The app is not installed on the actual device, but it does work on the Simulator.'
It worked fine the other day.
Thanks,
Dan Uff
Hi all,
I've been working on an app for months and have recently came across the below problem.
I have a listView with a NavigationView in SwiftUI. When I go into the list, there is NO NavigationBar title or Buttons above it. When I start to scroll, it appears, and then disappears when I go to the top of the list. It has suddenly appeared without any rhyme or reason. I have seen this question asked before and a solution. I have tried it and it still is a problem.
Here's the code:
import Foundation
struct MainMenu: View {
@State private var mainOptions: Int? = 0
@State private var tag: Int = 0
var fSize = Int(20)
var body: some View {
NavigationView() {
List {
Section(header: Text("MAIN INFORMATION"))
{
NavigationLink(destination: Introduction(), tag:1, selection: $mainOptions) {
Image(systemName: "doc")
Text("Introduction")
.bold()
}
NavigationLink(destination: BeSafe(), tag:2, selection: $mainOptions)
{
Image(systemName: "doc")
Text("Be Safe")
.bold()
}
NavigationLink(destination: MythsAndFacts(), tag:3, selection: $mainOptions)
{
Image(systemName: "doc")
Text("Myths and Facts")
.bold()
}
NavigationLink(destination: CycleofViolence(), tag:4, selection: $mainOptions)
{
Image(systemName: "doc")
Text("Cycle of Violence")
.bold()
}
NavigationLink(destination: Definition(), tag:5, selection: $mainOptions)
{
Image(systemName: "doc")
Text("Definitions")
.bold()
}
NavigationLink(destination: PersonalSafetyPlan(), tag:6, selection: $mainOptions)
{
Image(systemName: "doc")
Text("Personal Safety Plan")
.bold()
}
NavigationLink(destination: PPOs(), tag:7, selection: $mainOptions)
{
Image(systemName: "doc")
Text("PPOs")
.bold()
}
NavigationLink(destination: QuestionsOnLeaving(), tag:8, selection: $mainOptions)
{
Image(systemName: "doc")
Text("Questions on Leaving")
.bold()
}
NavigationLink(destination: AbuseMenu(), tag:9, selection: $mainOptions)
{
Image(systemName: "doc")
Text("Information on Abuse")
.bold()
}
}
Section(header: Text("GET MORE INFORMATION"))
{
NavigationLink(destination: PhoneNumbers())
{
Image(systemName: "phone")
Text("Phone Numbers")
.bold()
}
NavigationLink(destination: Search())
{
Image(systemName: "safari")
Text("Search")
.bold()
}
}
Section(header: Text("TAKE NOTES"))
{
NavigationLink(destination: CPNoteLite())
{
Image(systemName: "note.text")
Text("CPNote Lite")
.bold()
}
NavigationLink(destination: CPNoteHelp())
{
Image(systemName: "questionmark")
Text("Help with CPNote Lite")
.bold()
}
}
Section(header: Text("FOR YOUR PROTECTION"))
{
NavigationLink(destination: HideInfo())
{
Image(systemName: "book.closed")
Text("Hide This App.")
.bold()
}
}
}
}.navigationTitle("Domestic Violence")
.navigationBarTitleDisplayMode(.inline)
.toolbar
{
ToolbarItem(placement: .bottomBar)
{
HStack {
Image(systemName: "c.circle")
.resizable()
.frame(width: 20, height: 20)
Text("2021 Connecting People Software")
.font(.custom("", size: 18))
}
}
}
.navigationBarItems(leading: NavigationLink(destination: About(),
label: {
Image(systemName: "info.circle")
.font(.custom("", size: 18))
}), trailing: NavigationLink(destination: Support(),
label: {
Image(systemName: "person.circle")
.font(.custom("", size: 18))
}))
}
}
struct MainMenu_Previews: PreviewProvider {
static var previews: some View {
MainMenu()
.previewInterfaceOrientation(.portrait)
}
}
Thank you,
Dan Uff
Hi,
In the past, I have tried to make an app that reads JSON from a remote server. I tried to use the same steps that are done with an iOS app, without success. I need to know if its even possible and where I would need to look to get this up and running.
Thanks,
Dan Uff
Hi,
On my company's website, I like to provide a direct app store link to an app that's currently listed using the official App Store buttons.
Will Apple be providing such access for Vision Pro apps? If so, where can I find this?
Thanks,
Dan Uff
Hi,
I am receiving the above error after trying to upload it to the App Store.
I would know what to do IF Xcode would provide WHICH file is corrupt.
The error reads:
ITMS-90013: Corrupt Image File - The image file $[IconName] appears to be corrupt.
Again, I would know what to do if I had more information about which file(s) to fix.
Could anyone FROM APPLE help me or give me a hint?
Thanks,
Dan Uff
Hi.
I am getting an error each time Xcode installs or upgrades itself.
The simulator goes through the download process and them I get another error that says "Disk Image Not Available". I got this with the Beta over the summer and now.
Anyone else have this problem?
Thanks,
Dan Uff
Hi,
This maybe somewhat confusing, but please bear with me.
I currently have an app in the App Store that supports iOS and tvOS. But the tvOS version was a separate app during the development process. I'd like to combine the iOS and tvOS app into one project so its easier to handle and keep track of internally.
Can I upload the new Apple TV version to the same place where the current one is, or would I have to delete the current Apple TV version before uploading the newly combined version?
I hope I made that clear enough :-)
Thank you,
Dan Uff
Hi,
I've uploaded a new version of my Mac app after being rejected by Apple. I usually get a "new version section" where I pick out the version that I just uploaded. I am NOT getting that choice.
Did Apple change something that I'm not aware of?
Thank you,
Dan Uff
Hi,
My app is going to consist of 2-3 pages of weather data. Do I have to add the Apple Weather logo to each page, or just the main one?
Thanks,
Dan Uff
Hi,
I'm trying to make a small text editor. Everything works except I need the background a different color.
But the standard way to do it with 'ZStack' doesn't work? Any ideas?
Thanks!
ZStack {
Color.green
.ignoresSafeArea()
NavigationView {
TextEditor(text: $text)
.background(Color.clear)
.navigationTitle("Notepad Test!")
}
}
}