How to get a view size in SwiftUI
12:09
Create a Custom Dialog in SwiftUI
16:52
New in SwiftUI: AnyLayout
7:21
Жыл бұрын
New in SwiftUI: Gauge View
9:02
Жыл бұрын
New in SwiftUI: Grid View
6:55
Жыл бұрын
What’s new in Swift 5.7
7:38
2 жыл бұрын
Developer Mode in the latest iOS 16
1:06
What's new in Swift 5.6?
7:03
2 жыл бұрын
My favorite shortcuts in Xcode
13:00
2 жыл бұрын
Setting up developer’s goals
10:51
2 жыл бұрын
Swift basics: Array vs Set
4:03
3 жыл бұрын
Пікірлер
@Notkdenben
@Notkdenben 9 күн бұрын
I realize this comment is 3 years after the fact; but I think Xcode now supports MD
@mikemikina
@mikemikina 6 күн бұрын
I think it is still quite limited, and you can't get a proper preview in Xcode 🤔
@astraliteofficial
@astraliteofficial 21 күн бұрын
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.
@mikemikina
@mikemikina 14 күн бұрын
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
@RadekSzcz Ай бұрын
Great tutorial!
@jtbserviceeood
@jtbserviceeood Ай бұрын
This video helped me a lot. Thanks.
@mikemikina
@mikemikina Ай бұрын
You're very welcome! I'm glad the video was helpful!
@thewaliiiii
@thewaliiiii 2 ай бұрын
How to add for existing projects?
@perrygupta
@perrygupta 2 ай бұрын
Thank you
@AnkitMakwana-qo9tn
@AnkitMakwana-qo9tn 2 ай бұрын
8gb mac mini m2 good for ios react native emulator?
@mikemikina
@mikemikina 2 ай бұрын
I'm not sure about React Native, but in terms of RAM, I would definitely go for more than 8GB.
@AnkitMakwana-qo9tn
@AnkitMakwana-qo9tn 2 ай бұрын
@@mikemikina how about 32gb ram i9 processor? 1tb ssd
@beavean
@beavean 2 ай бұрын
Great explanation. Thanks!
@mikemikina
@mikemikina 2 ай бұрын
Thanks!
@SteveKovacs
@SteveKovacs 3 ай бұрын
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.
@mikemikina
@mikemikina 3 ай бұрын
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?
@SteveKovacs
@SteveKovacs 3 ай бұрын
@@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!
@mikemikina
@mikemikina 3 ай бұрын
@@SteveKovacs I can't really help you with this one. I'm guessing Expo needs to be updated.
@absarrahman9177
@absarrahman9177 3 ай бұрын
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.
@mikemikina
@mikemikina 3 ай бұрын
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! 🙌
@rahuljamba5846
@rahuljamba5846 3 ай бұрын
Thanks for sharing your knowledge !!
@snjvchvn
@snjvchvn 3 ай бұрын
This one is gonna be on repeat till i get it.. thanks
@snjvchvn
@snjvchvn 3 ай бұрын
Short and sweet, pl continue to make such videos. thanks
@mikemikina
@mikemikina 3 ай бұрын
Thank you for the kind words 😊
@tspmcfarlane
@tspmcfarlane 3 ай бұрын
Very useful guide, thanks
@mikemikina
@mikemikina 3 ай бұрын
You're welcome! 😊
@philipyoungg
@philipyoungg 3 ай бұрын
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.
@mikemikina
@mikemikina 3 ай бұрын
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?
@pqsk
@pqsk 3 ай бұрын
Great work man.
@mikemikina
@mikemikina 3 ай бұрын
Thanks!
@Blendermodeldeaf-ry5nz
@Blendermodeldeaf-ry5nz 3 ай бұрын
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?
@mikemikina
@mikemikina 3 ай бұрын
I'm not sure what you are trying to do, can you be more specific?
@Blendermodeldeaf-ry5nz
@Blendermodeldeaf-ry5nz 3 ай бұрын
@@mikemikina Oh well I unable to send you this link here message.
@mikemikina
@mikemikina 3 ай бұрын
@@Blendermodeldeaf-ry5nz yeah, KZbin likes to block links in the comment section. Maybe you can send it on Twitter?
@Blendermodeldeaf-ry5nz
@Blendermodeldeaf-ry5nz 3 ай бұрын
@@mikemikina Sure
@thenewsmargstv1816
@thenewsmargstv1816 4 ай бұрын
Thank you
@mikemikina
@mikemikina 4 ай бұрын
You're welcome! 😊
@Kamboire
@Kamboire 4 ай бұрын
My photo text don't appear even with your binding method any help ?
@mikemikina
@mikemikina 4 ай бұрын
Can you share your code?
@Kamboire
@Kamboire 4 ай бұрын
@@mikemikina GeometryReader(content: { geometry in let size = geometry.size ScrollView(.horizontal){ HStack(spacing : 5){ ForEach(RowCards){ card in GeometryReader(content: { proxy in let cardsize = proxy.size let minX = proxy.frame(in: .scrollView).minX - 30.0 let minX2 = min((proxy.frame(in: .scrollView).minX*1.4),size.width*1.4) Image(card.image) .resizable() .aspectRatio(contentMode: .fill) .offset(x: -minX) .frame(width: cardsize.width, height: cardsize.height) .clipShape(.rect(cornerRadius: 10) ) .shadow(color: /*@START_MENU_TOKEN@*/.black/*@END_MENU_TOKEN@*/.opacity(0.25), radius: 8, x : 5 ,y : 10) }) .frame(width: size.width - 60) .scrollTransition(.interactive,axis: .horizontal) { view, phase in view .scaleEffect(phase.isIdentity ? 1 : 0.93) } } } .padding(.horizontal,15) .scrollTargetLayout() .frame(height: size.height,alignment: .top) } .scrollTargetBehavior(.viewAligned) .scrollIndicators(.hidden) }) .frame(height: 400) .padding(.horizontal,-15) .padding(.top,10) } } .padding(15) } .scrollIndicators(.hidden) }
@rodrigoleitao25
@rodrigoleitao25 4 ай бұрын
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
@jeroenbosgraaf8778
@jeroenbosgraaf8778 4 ай бұрын
Yes, if you have an icon that is transparent IOS makes the icon dark or light.
@hasiburrahman3573
@hasiburrahman3573 5 ай бұрын
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!
@mikemikina
@mikemikina 5 ай бұрын
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! 😊
@hasiburrahman3573
@hasiburrahman3573 5 ай бұрын
@@mikemikina Quite excited for this. Hope you do this soon
@GuitarFXpad
@GuitarFXpad 5 ай бұрын
Your videos are great but can you mute the SOUND KEYBOARD is totally annoying
@mikemikina
@mikemikina 5 ай бұрын
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!
@ludicrousgaming7956
@ludicrousgaming7956 5 ай бұрын
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.
@mosesmpandeprogramer2917
@mosesmpandeprogramer2917 5 ай бұрын
Thank you watching you from Africa Zambia 🙏🙏
@mikemikina
@mikemikina 5 ай бұрын
Thanks for watching! 😊
@da6410
@da6410 5 ай бұрын
Thank you! You are the best!
@mikemikina
@mikemikina 5 ай бұрын
Thanks! 😊
@obrienserhii
@obrienserhii 5 ай бұрын
thanks!!!
@SørenGregersen-e8e
@SørenGregersen-e8e 5 ай бұрын
Super cool! Nice to see you are back at KZbin again 😎
@mikemikina
@mikemikina 5 ай бұрын
Thanks! I got busy with my app, but I will definitely create more videos after WWDC 😊
@maqusss
@maqusss 5 ай бұрын
Nice! But does it matter that you use ObservedObject instead of StateObject in App struct ( 2:50 ) ?
@mikemikina
@mikemikina 5 ай бұрын
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.
@stonestudio9
@stonestudio9 5 ай бұрын
@@mikemikina Can I use @Observable instead of ObservableObject ?
@mikemikina
@mikemikina 5 ай бұрын
Yes, you can! I'm not using it here because I wanted this module to be compatible with iOS 16 🙂
@Leopugpiano
@Leopugpiano 5 ай бұрын
Really cool!
@DVMagicStudios
@DVMagicStudios 5 ай бұрын
Excellent thorough explanation, pace and visuals.
@ilyabiltuev
@ilyabiltuev 6 ай бұрын
nice tip!
@seassault
@seassault 6 ай бұрын
Appreciate this video a lot. I was having trouble understanding the requirement of @State in Observation, you clearly explained it.
@mikemikina
@mikemikina 6 ай бұрын
I'm glad it was helpful 😊
@yapet
@yapet 6 ай бұрын
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..
@iceshadow625
@iceshadow625 7 ай бұрын
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.
@iceshadow625
@iceshadow625 7 ай бұрын
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!
@mikemikina
@mikemikina 7 ай бұрын
That's awesome! I will be working on a new version soon. I will take your changes into consideration. Thanks! 🙌
@victorriurean
@victorriurean 7 ай бұрын
🔥
@arozendojr
@arozendojr 7 ай бұрын
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
@mikemikina
@mikemikina 7 ай бұрын
Sure! I can definitely make a video about that! I'm using hot reload in a SwiftUI project on M1 right now 🙌
@dsharma1978
@dsharma1978 8 ай бұрын
Just curious to know whether SwiftUI worked to implement video editing timeline?
@mikemikina
@mikemikina 8 ай бұрын
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.
@dsharma1978
@dsharma1978 7 ай бұрын
@@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?
@mikemikina
@mikemikina 7 ай бұрын
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 😅
@dsharma1978
@dsharma1978 7 ай бұрын
@@mikemikinaApple claims that Final Cut Pro and Logic Pro now are SwiftUI apps. One wonders how they created a performant timeline using SwiftUI!
@Spacer-l3j
@Spacer-l3j 7 ай бұрын
@@dsharma1978they did not fight the framework. No ViewModels and no stupid workarounds and tricks
@ivanamakhin4931
@ivanamakhin4931 8 ай бұрын
Thank you very much i spend 2 days with scrolling tUI Chart and re-rendering views, and now all works fine
@mikemikina
@mikemikina 8 ай бұрын
I'm glad it finally worked! 🙌
@George-kg9vf
@George-kg9vf 8 ай бұрын
Greate video, i just find this issue with nested observed objects. I will try the new state management today. Thanks
@mikemikina
@mikemikina 8 ай бұрын
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 🫠
@gojamesgo851
@gojamesgo851 8 ай бұрын
Concise and informative. Love it. Thank you!
@mikemikina
@mikemikina 8 ай бұрын
Glad it was helpful! 🤗
@tbarcello
@tbarcello 8 ай бұрын
How about keeping the selected photo always horizontally centered? Possible?
@mikemikina
@mikemikina 8 ай бұрын
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.
@vitorgomes4794
@vitorgomes4794 9 ай бұрын
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?
@mikemikina
@mikemikina 9 ай бұрын
Not sure if I got this 🤔 Could you share a sample code?
@vitorgomes4794
@vitorgomes4794 9 ай бұрын
@@mikemikina Yes! How can share with you?
@mikemikina
@mikemikina 9 ай бұрын
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."
@vitorgomes4794
@vitorgomes4794 9 ай бұрын
@@mikemikina It is the file pinned on my home page of GitHub. Sao Judas Tadeu Americana/Views/PrayersViews/NovenaView.swift, that's the file
@SonHD92
@SonHD92 10 ай бұрын
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?
@mikemikina
@mikemikina 10 ай бұрын
How do you start the animation? To what element is the progress bar connected?
@SonHD92
@SonHD92 10 ай бұрын
@@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
@mikemikina
@mikemikina 10 ай бұрын
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 🙂
@SonHD92
@SonHD92 10 ай бұрын
@@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 :)
@海森堡-x4p
@海森堡-x4p 10 ай бұрын
awesome explain, thanks
@kayboy6055
@kayboy6055 10 ай бұрын
All this time I thought apple was using secret code to make those cute modal overlays. they were just hiding the views???
@grapejuice04
@grapejuice04 8 ай бұрын
Me too! Just learned this. My only concern would be memory issues.
@w0mblemania
@w0mblemania 23 күн бұрын
@@grapejuice04 See my comment.
@kavinda_dilshan_paramsoodi
@kavinda_dilshan_paramsoodi 11 ай бұрын
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.?
@mikemikina
@mikemikina 11 ай бұрын
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?
@raulvanegas1415
@raulvanegas1415 11 ай бұрын
Muchas gracias 🙏
@mikemikina
@mikemikina 11 ай бұрын
You are welcome! 🤗
@satoriappdev
@satoriappdev 11 ай бұрын
Very well done
@mikemikina
@mikemikina 11 ай бұрын
Thanks!
@mohd14shoeb
@mohd14shoeb Жыл бұрын
Thanks @mike for creating important and valuable SwiftUI resource to learn basic in easy way.
@mikemikina
@mikemikina Жыл бұрын
Glad you like it!
@rongqingsun1927
@rongqingsun1927 Жыл бұрын
Very nice video, thank you!!
@mikemikina
@mikemikina Жыл бұрын
Glad you liked it!