Today: Worked through episode 15 of iOS Design Handbook.
Thoughts: Made some good progress on the mobile workbench today.
Key concepts:
- Use SF Compact and SF Compact Rounded for watchOS.
- Apple watchOS minimum margin is 9.5 pixels (huh?)
Links:
n/a
Today: Finished the iOS Design Handbook by Design+Code. Also learned how the Button Fix type 2 connector works.
Thoughts: n/a
Key concepts:
n/a
Links:
n/a
Today: Started the course SwiftUI for iOS 14 by Design+Code.
Thoughts: n/a
Key concepts:
- You can visually edit the SwiftUI code using the attributes inspector.
Cmd + D
will duplicate elements (a bit like Figma).- I need a M1 Mac!
- Padding is the space around an element.
- Spacing is the space between elements inside a container (like VStack).
Ctrl + Option + click
inside the visual editor will bring up the attribute inspector as a pop over.Cmd + Shift + L
shows the Library from which you can choose what elements to add.
Links:
Today: Worked through lessons 3 to 6 of SwiftUI for iOS 14. Also started reading Building Mobile Apps at Scale by Gergely Orosz
Thoughts: I can see what the rage is all about for SwiftUI.
Key concepts:
-
Cmd + N
create new file from selecting a template. -
Xcode can now create a group and a folder from selection. Used to be "virtual" folders in the project but not on disk.
-
Using SF Symbol icons is as easy as:
Image(systemName: "sfsymbol.icon.name")
-
Creating a side bar:
List { ... } .listStyle(SidebarListStyle())
-
Creating a navigation view (legacy navigation bar + vc)
NavigationView { ... NavigationLink(destination: someOtherView()) { ... } } .navigationTitle("Screen name")
-
Conditional code for iOS & iPadOS vs macOS
#if os(iOS) ... #else // macOS code #endif
-
On macOS you can control the window / frame sizing
.frame(minWidth: 800, minHeight: 600)
-
Toolbar allows you to place bar button items on the top or bottom. Can be placed inside a NavigationView and can contain multiple ToolbarItems
Links:
n/a
Today: Worked through lessons 7 to 11 of SwiftUI for iOS 14.
Thoughts: I caught a cold earlier in the week and it is at it worst so far.
Key concepts:
- In code you can get a rendered colour in the editor by specifying
Color(lit [autocomplete chose Literal])
- Y is important because of such and such
Links:
n/a
Today: Worked through lessons 12 to 14 of SwiftUI for iOS 14.
Thoughts: Struggling today with coughing up flem and I have a mini fever (hot & cold flip flopping).
Key concepts:
- LazyVGrid & LazyHGrid can be used to have an adaptive layout. Where the rows and columns will adapt based on content and screen size.
Links:
n/a
Today: Worked through lessons 15 & 16 of SwiftUI for iOS 14.
Thoughts: Happy Mothers day. Week 9 complete.
Key concepts:
n/a
Links:
n/a