You can add the ability for a user to zoom and crop a photo with just 2 easy steps! Learn how now:
Enjoy this info? Visit my Patreon page to support educators and artists.
My YouTube Channel
Need help with SwiftUI? Check out my products at: Big Mountain Studio Website
Friday, October 26, 2018
Thursday, October 18, 2018
3 Steps to App Icons with FREE Tools! - Part 20 - Itinerary App (iOS, Xc...
Having trouble generating an icon for your app? Watch this video and learn my three simple steps to creating an icon. And the best part is I show you how to do all this with FREE tools! Get started today and you will generating app icons in no time.
Wednesday, October 3, 2018
Help Screens in iOS Apps - Part 19 - Itinerary App (iOS, Xcode 10, Swift 4)
Sometimes you want to help users with some tips about how to use your app. Learn one way you can do this by using the view controller's scene dock. We create a help screen and we keep track if the user has seen it or not. If the user has seen it, then we do not show it again.
Friday, September 21, 2018
Itinerary App - Part 18 - Swipe to Edit Table View Row (iOS, Xcode 10, S...
In the last video you learned how to swipe to delete a table view row and present the user with an alert. In this video you will learn about swiping right and showing and edit action. When tapped we will present the user with our popup with the trip title and image loaded.
You're also going to learn some other things such as new Xcode 10 and Swift 4.2 features, calling a segue in code, problems with named colors and image assets, a tool to find matching colors to expand your color theme and much more!
-- CODE UPDATES --
There are some things I forgot to cover while teaching that are important.
1. We want to reset the tripIndexToEdit in our TripsViewController after the popup closes. If we don't set that variable back to nil then the popup will always thing you want to edit. We want to do this in the prepareForSegue, in the popup's doneSaving action:
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "toAddTripSegue" {
let popup = segue.destination as! AddTripViewController
popup.tripIndexToEdit = self.tripIndexToEdit
popup.doneSaving = { [weak self] in
self?.tableView.reloadData()
self?.tripIndexToEdit = nil
}
}
}
2. I forgot to change the popup's title (titleLabel) when we are editing a trip! Here is the code we want in the popup's viewDidLoad:
if let index = tripIndexToEdit {
let trip = Data.tripModels[index]
tripTextField.text = trip.title
imageView.image = trip.image
titleLabel.text = "Edit Trip"
}
You're also going to learn some other things such as new Xcode 10 and Swift 4.2 features, calling a segue in code, problems with named colors and image assets, a tool to find matching colors to expand your color theme and much more!
-- CODE UPDATES --
There are some things I forgot to cover while teaching that are important.
1. We want to reset the tripIndexToEdit in our TripsViewController after the popup closes. If we don't set that variable back to nil then the popup will always thing you want to edit. We want to do this in the prepareForSegue, in the popup's doneSaving action:
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "toAddTripSegue" {
let popup = segue.destination as! AddTripViewController
popup.tripIndexToEdit = self.tripIndexToEdit
popup.doneSaving = { [weak self] in
self?.tableView.reloadData()
self?.tripIndexToEdit = nil
}
}
}
2. I forgot to change the popup's title (titleLabel) when we are editing a trip! Here is the code we want in the popup's viewDidLoad:
if let index = tripIndexToEdit {
let trip = Data.tripModels[index]
tripTextField.text = trip.title
imageView.image = trip.image
titleLabel.text = "Edit Trip"
}
Wednesday, September 12, 2018
Itinerary App - Part 17 - Swipe To Delete Table View Row (iOS, Xcode 9, ...
In this video you will learn the new way to swipe to delete (since iOS 11). When swiping to delete a table view row we will be presenting the user with an alert confirmation too. You will learn how to configure the button that is exposed by swiping, such as setting the text, icon and background color and the action to perform after tapping the button exposed by swiping.
In-Depth Info on configuring swipe actions: https://youtu.be/RSxfGGdA8QE
In-Depth Info on configuring swipe actions: https://youtu.be/RSxfGGdA8QE
Monday, August 27, 2018
Itinerary App - Part 16 - Access The Photo Library (iOS, Xcode 9, Swift 4)
Learn how to access the user's photo library in iOS so they can pick a photo. And if the user denies access, how do you handle that if later they change their mind? Learn how!
You're going to learn a lot of other little things in this video too.
Wednesday, August 1, 2018
Itinerary App - Part 15 - Images in Text Fields for Validation (iOS, Xco...
In this video you will learn different options for customizing the UITextField to show validation failed. Including how to add an image to the actual textfield, change it's color, border or placeholder text (hint text) if validation fails. These are just some of the options to indicate if text field validation fails. Combine, choose or invent ways to validate text fields in your app!
Subscribe to:
Posts (Atom)
SwiftUI Search & Filter with Combine - Part 3 (iOS, Xcode 13, SwiftUI, 2...
In part 3 of the Searchable video series, I show you how to use Combine in #SwiftUI for the search and filter logic connected to the searcha...
-
This post visually shows the stack view's Alignment and Distribution property settings. There is also a section on resolving auto layou...
-
I couldn't find a tutorial on this so this is my documented journey into trying to figure out how to implement OAuthSwift into an iOS p...
-
I had someone ask about aligning text within a TextField view and I didn't have a page in my book for this but added one just now. ...