Hello, i am very new with macos development and wanted to create a MacOS app with SwiftUI. I initiate a project with coredata checked and wanted to see how it behaves.
So how do I delete this item? It has onDelete function but not functioning
Thanks
Post
Replies
Boosts
Views
Activity
Hello Apple Platform developers. I am currently struggling with problem within the UIImagePickerController. The Navigationbar background color is somehow has no color (this appear only on the latest iOS version). Are there some kinda problem within the UIImagePickerController API?
here's how I instantiate the UIImagePIckerController
let picker = UIImagePickerController()
picker.sourceType = .photoLibrary
picker.navigationBar.isTranslucent = false
picker.navigationBar.barTintColor = .blue
picker.delegate = self
picker.modalPresentationStyle = .fullScreen
if #available (iOS 13, *) {
// let barAppearance = UINavigationBarAppearance()
// barAppearance.configureWithDefaultBackground()
// barAppearance.backgroundColor = .red
// picker.navigationBar.standardAppearance = barAppearance
// picker.navigationBar.scrollEdgeAppearance = barAppearance
let barA = UINavigationBar.appearance()
barA.tintColor = .systemPink
}
return picker
}()
as you can see, I tried to change the color and it does not appear to fix the problem
here's the problem visualization
how it supposed to look like
there's should be like a sticky white header
Hello, i am fairly new to Swift Playground App. So I wanted to do navigation like in the iOS or Navigation in UIKit.
My expectation when using NavigationView is well navigate to another view. Turns out, when implementing navigation view in Playground (or perhaps this is the default iPad navigation view) it look like this :
Initial launch :
After i click back it display the root navigationview but it shows it on the side :
and it initial launch is not the main/root view like in UINavigationView but it navigates to a blank view
Are there a way to disable it? i dont think i have enough time to emulate all of this in uikit
The code :
@AppStorage(megaMendungKey) var isMegaAvail: Bool = false
@AppStorage(kawungKey) var isKawungAvail: Bool = false
@AppStorage(simbutKey) var isSimbutAvail: Bool = false
var body: some View {
ZStack {
NavigationView{
Rectangle()
}
}
}
}
so i tried to add a simple prose onto my playground project
/*:
Roses are `UIColor.red`,
Violets are 🔵,
Swift Playgrounds are rad,
and so are you!/
but when i run my code or go to my sharedCode.swift, the prose vanish
Is there any setting that i need to do? or is it an M1 problem?
Thank you