I realize this comment is 3 years after the fact; but I think Xcode now supports MD
@mikemikina6 күн бұрын
I think it is still quite limited, and you can't get a proper preview in Xcode 🤔
@astraliteofficial21 күн бұрын
So the Tink only applies to non-black areas of the icon? At first I was thinking we'd have to provide layers but this is also pretty good.
@mikemikina14 күн бұрын
Yes, the white and black colors in the icon are being turned to black, and a tint is being applied to the remaining colors in the icon.
@RadekSzczАй бұрын
Great tutorial!
@jtbserviceeoodАй бұрын
This video helped me a lot. Thanks.
@mikemikinaАй бұрын
You're very welcome! I'm glad the video was helpful!
@thewaliiiii2 ай бұрын
How to add for existing projects?
@perrygupta2 ай бұрын
Thank you
@AnkitMakwana-qo9tn2 ай бұрын
8gb mac mini m2 good for ios react native emulator?
@mikemikina2 ай бұрын
I'm not sure about React Native, but in terms of RAM, I would definitely go for more than 8GB.
@AnkitMakwana-qo9tn2 ай бұрын
@@mikemikina how about 32gb ram i9 processor? 1tb ssd
@beavean2 ай бұрын
Great explanation. Thanks!
@mikemikina2 ай бұрын
Thanks!
@SteveKovacs3 ай бұрын
I have done this in xcode 16 (beta), then did a new EAS development build for my React Native project. When install the build on my iOS 18 device, it does not show the dark mode icon that I had put in the AppIcon set in xcode. I have been trying to figure it out for days now! Is there anything I am missing? I checked off "include all app icon assets" as well. And made sure there was no hard setting on for light mode in my info.plist. I know KZbin isn't the best place for tech support but there isn't much out there yet for this new stuff as I have search extensively! Thank you for the help, I really need to get this working.
@mikemikina3 ай бұрын
I'm not working with React Native, so I can't really tell. What does the build process look like? Do you have an xcproject or xcworkspace and can run it using Xcode, or is there a special CLI for it?
@SteveKovacs3 ай бұрын
@@mikemikina Ya I am not sure. I use the Expo CLI to build my React Native project. My iOS app icons are in Xcode though. And it uses Xcode to build the iOS directory. But somehow it is not using the dark icon. I don't know, maybe it is an expo thing then. No clue anymore!
@mikemikina3 ай бұрын
@@SteveKovacs I can't really help you with this one. I'm guessing Expo needs to be updated.
@absarrahman91773 ай бұрын
Great job. But I have a question at 7:01 . You have added the view of the progress bar as the parent's subview. But should we add the progress bar as a child view? Didn't we add the progress bar view in the stack view? Thanks in advance.
@mikemikina3 ай бұрын
I think that you are right! UIStackView with arrangedSubviews already has the childVC, and the whole stack view is being added as a subview. So there is no need to use addChild(childVC) and view.addSubview(childVC.view). Thank you for pointing that out! 🙌
@rahuljamba58463 ай бұрын
Thanks for sharing your knowledge !!
@snjvchvn3 ай бұрын
This one is gonna be on repeat till i get it.. thanks
@snjvchvn3 ай бұрын
Short and sweet, pl continue to make such videos. thanks
@mikemikina3 ай бұрын
Thank you for the kind words 😊
@tspmcfarlane3 ай бұрын
Very useful guide, thanks
@mikemikina3 ай бұрын
You're welcome! 😊
@philipyoungg3 ай бұрын
I wonder if you can release the app on App Store when the binary is built with XCode 16? I don’t think it’s possible, yet so many apps already have the tinted icon.
@mikemikina3 ай бұрын
I don't think that you can upload an app using any beta version of Xcode. Have you seen any apps that already have dedicated dark mode icons, not just tinted ones?
@pqsk3 ай бұрын
Great work man.
@mikemikina3 ай бұрын
Thanks!
@Blendermodeldeaf-ry5nz3 ай бұрын
Can you tell me about open app to appear Dark Mode and Light Mode on xCode 15 and 16 beta please and how can I create app into iPadOS?
@mikemikina3 ай бұрын
I'm not sure what you are trying to do, can you be more specific?
@Blendermodeldeaf-ry5nz3 ай бұрын
@@mikemikina Oh well I unable to send you this link here message.
@mikemikina3 ай бұрын
@@Blendermodeldeaf-ry5nz yeah, KZbin likes to block links in the comment section. Maybe you can send it on Twitter?
@Blendermodeldeaf-ry5nz3 ай бұрын
@@mikemikina Sure
@thenewsmargstv18164 ай бұрын
Thank you
@mikemikina4 ай бұрын
You're welcome! 😊
@Kamboire4 ай бұрын
My photo text don't appear even with your binding method any help ?
Can this be done for PWAs without XCode? How can we define icons for the dark and tinted versions without XCode? If there's a specific name for the file or a place for us to define that in that would be nice
@jeroenbosgraaf87784 ай бұрын
Yes, if you have an icon that is transparent IOS makes the icon dark or light.
@hasiburrahman35735 ай бұрын
Your video editor app looks super nice! did you do it all using swiftUI? if you did, could make videos or share blogs or even your repo where you implemented it. Your video on that would be nice!
@mikemikina5 ай бұрын
Yes, it is mostly SwiftUI! There are parts that are not possible with SwiftUI, like the video player or super broken scrollview, so some parts are written with UIKit. I do plan to release more videos about AVFoundation, but also more videos about creating the video editor UI. Stay tuned! 😊
@hasiburrahman35735 ай бұрын
@@mikemikina Quite excited for this. Hope you do this soon
@GuitarFXpad5 ай бұрын
Your videos are great but can you mute the SOUND KEYBOARD is totally annoying
@mikemikina5 ай бұрын
I was not aware! I'm using a regular Apple magic keyboard, and I thought that it's not that loud. I will take this into consideration. Thanks!
@ludicrousgaming79565 ай бұрын
I’m glad this is a feature in Xcode, with the current iOS betas i didn’t like that none of my third party apps didn’t have dark modes hopefully developers will start to implement this.
@mosesmpandeprogramer29175 ай бұрын
Thank you watching you from Africa Zambia 🙏🙏
@mikemikina5 ай бұрын
Thanks for watching! 😊
@da64105 ай бұрын
Thank you! You are the best!
@mikemikina5 ай бұрын
Thanks! 😊
@obrienserhii5 ай бұрын
thanks!!!
@SørenGregersen-e8e5 ай бұрын
Super cool! Nice to see you are back at KZbin again 😎
@mikemikina5 ай бұрын
Thanks! I got busy with my app, but I will definitely create more videos after WWDC 😊
@maqusss5 ай бұрын
Nice! But does it matter that you use ObservedObject instead of StateObject in App struct ( 2:50 ) ?
@mikemikina5 ай бұрын
In this demo project, the ObservedObject and StateObject should behave the same. Even if NetworkMonitor were initialized again, it doesn't hold any value that would not be recreated automatically.
@stonestudio95 ай бұрын
@@mikemikina Can I use @Observable instead of ObservableObject ?
@mikemikina5 ай бұрын
Yes, you can! I'm not using it here because I wanted this module to be compatible with iOS 16 🙂
@Leopugpiano5 ай бұрын
Really cool!
@DVMagicStudios5 ай бұрын
Excellent thorough explanation, pace and visuals.
@ilyabiltuev6 ай бұрын
nice tip!
@seassault6 ай бұрын
Appreciate this video a lot. I was having trouble understanding the requirement of @State in Observation, you clearly explained it.
@mikemikina6 ай бұрын
I'm glad it was helpful 😊
@yapet6 ай бұрын
I've spent so many of my brain cells trying to link projects together. Turns out having them open in another XCode window breaks it! Thanks for the tip. What a joke..
@iceshadow6257 ай бұрын
Pretty awesome tutorial. A couple of issues I have ran into though are,: The alert always appears when the view is first loaded, and cannot be re-shown once dismissed. Simply removing onAppear and replacing with onChange(of: isActive) and used an if statement fixed that. The other issue is that using ZStack does in fact allow me to click on the background to dismiss it, and even looks cool (by making everything else look inactive) but everything else IS inactive and remains inactive or un-clickable even after the popup is dismissed, and that issue I am still looking for a solution.
@iceshadow6257 ай бұрын
Figured out a solution! I wrapped the Color portion just under ZStack in if (isActive) and that fixed the issue. Thank you again for the tutorial!
@mikemikina7 ай бұрын
That's awesome! I will be working on a new version soon. I will take your changes into consideration. Thanks! 🙌
@victorriurean7 ай бұрын
🔥
@arozendojr7 ай бұрын
Can you show how to create a project with swiftui and hot reload enabled, I have a lot of difficulty at this point with M1
@mikemikina7 ай бұрын
Sure! I can definitely make a video about that! I'm using hot reload in a SwiftUI project on M1 right now 🙌
@dsharma19788 ай бұрын
Just curious to know whether SwiftUI worked to implement video editing timeline?
@mikemikina8 ай бұрын
Yes, it did work! Although, it's not 100% pure SwiftUI. The main obstacle was the SwiftUI scroll view implementation. Because of it, I had to wrap the SwiftUI timeline with a UIScrollView.
@dsharma19787 ай бұрын
@@mikemikina Yes, that exactly what I suspected. It's impossible to build a timeline with SwiftUI ScrollView. Btw, can you share source code of full timeline?
@mikemikina7 ай бұрын
I made some workarounds in SwiftUI using offset manipulation or multiple IDs. But the performance was not great. I will make a video on how to create a timeline. It will have the source code as usual. Just not sure when exactly this will happen 😅
@dsharma19787 ай бұрын
@@mikemikinaApple claims that Final Cut Pro and Logic Pro now are SwiftUI apps. One wonders how they created a performant timeline using SwiftUI!
@Spacer-l3j7 ай бұрын
@@dsharma1978they did not fight the framework. No ViewModels and no stupid workarounds and tricks
@ivanamakhin49318 ай бұрын
Thank you very much i spend 2 days with scrolling tUI Chart and re-rendering views, and now all works fine
@mikemikina8 ай бұрын
I'm glad it finally worked! 🙌
@George-kg9vf8 ай бұрын
Greate video, i just find this issue with nested observed objects. I will try the new state management today. Thanks
@mikemikina8 ай бұрын
Thanks! The new observation framework is awesome, but you need the latest iOS, so it could be a deal breaker if your app needs to support older versions 🫠
@gojamesgo8518 ай бұрын
Concise and informative. Love it. Thank you!
@mikemikina8 ай бұрын
Glad it was helpful! 🤗
@tbarcello8 ай бұрын
How about keeping the selected photo always horizontally centered? Possible?
@mikemikina8 ай бұрын
Yes, it is. I actually started with this. It looked like an old iPod animation 😄 But it had a problem with the last photo. That's why I decided to switch to a simpler version.
@vitorgomes47949 ай бұрын
First of all, thanks for sharing this content @Mike. Second, I did the same thing on my project, but there I am using a List, not a ScrollView, and my button actually are two buttons inside a VStack. I am using a GeometryReader on this two buttons VStack but when I add the variable to the List .padding modifier my buttons VStack creates a weird white stripe behind, starting in the middle of the buttons VStack and going to the bottom. Have you got this behavior?
@mikemikina9 ай бұрын
Not sure if I got this 🤔 Could you share a sample code?
@vitorgomes47949 ай бұрын
@@mikemikina Yes! How can share with you?
@mikemikina9 ай бұрын
You can create a Gist on GitHub or a regular repo. If you don't want to make it public, you can just add me to this repo. My GitHub handle is: "mikina."
@vitorgomes47949 ай бұрын
@@mikemikina It is the file pinned on my home page of GitHub. Sao Judas Tadeu Americana/Views/PrayersViews/NovenaView.swift, that's the file
@SonHD9210 ай бұрын
Hi thank you for this tutorial, I put this custom progress in a scrollview. It's work fine when the app first run, but when I swipe left, the progress is hided then I swipe back to unhide, the animation is freezed. Do you know why?
@mikemikina10 ай бұрын
How do you start the animation? To what element is the progress bar connected?
@SonHD9210 ай бұрын
@@mikemikina i put it in onAppear just like you did. All I know is onAppear just call only once when the view rendered, i tried to trigger it by a flag from parent view but not work. Is there anyway to force the view re-render? I don’t have much experience with SwiftUI, just move from UIKit to SwiftUI for 2 months
@mikemikina10 ай бұрын
Not exactly, onAppear should be called each time the view appears on screen, usually when it disappears and appears again, it will be called again. Forcing a view to re-render doesn't work like it used to in UIKit. You have to think about it a little differently. The view is more like a data driven, it adapts to the data you provide. I would focus on a part where data should drive the progress view. It's hard to tell more without seeing the code. If you could post a sample on Github, it would be much easier 🙂
@SonHD9210 ай бұрын
@@mikemikina You're right. But as I said before, I have to put the progress view in a scrollview due to our project component. Then I think views inside scrollview are not trigger both onAppear or onDisapear when swipe backward/forward. I have to force refresh the view to make it trigger the onApear by recalled API with new data and thankfully my PO agree with this temporary solution :)
@海森堡-x4p10 ай бұрын
awesome explain, thanks
@kayboy605510 ай бұрын
All this time I thought apple was using secret code to make those cute modal overlays. they were just hiding the views???
@grapejuice048 ай бұрын
Me too! Just learned this. My only concern would be memory issues.
@w0mblemania23 күн бұрын
@@grapejuice04 See my comment.
@kavinda_dilshan_paramsoodi11 ай бұрын
i have the similar problem where i have an array that conforms to a model, and it's being used in a lazyVgrid and a foreach loop. the issue is that when an array elemant get changed the whole foreach get redrawn. Can you help me solve that? or can you make a video about that.?
@mikemikina11 ай бұрын
I made a video about how to prevent SwiftUI from re-rendering views kzbin.info/www/bejne/ioDQqXeseN9qm5Y is your issue similar to this one?
@raulvanegas141511 ай бұрын
Muchas gracias 🙏
@mikemikina11 ай бұрын
You are welcome! 🤗
@satoriappdev11 ай бұрын
Very well done
@mikemikina11 ай бұрын
Thanks!
@mohd14shoeb Жыл бұрын
Thanks @mike for creating important and valuable SwiftUI resource to learn basic in easy way.