2. • Sr.iOS Developer, Etisalat Misr
• My Etisalat
• Etisalat Cash
• Sr.iOS Developer Vodafone Egypt
• Mobile App Consultant, freelancing
AUTHER
MAHNOUD FATHELBAB
3. • Declarative Programming
• SwiftUI vs UIKit
• Demo
• SwiftUI Concepts - Modifiers - Data Binding
• Combine Framework
• Interfacing SwiftUI and UIKit
29/01/2019 SwiftUI 3
AGENDA
4. • Declarative programming is Define a Target and the compiler / framework will figure out the how
to do it.
• Imperative programming is commands and orders step by step to execute Target
29/01/2019 SWIFTUI 4
DECLARATIVE PROGRAMMING
5. • HTML
• FLUTTER
• React & React Native
29/01/2019 SWIFTUI 5
OTHER DECLARATIVE UI FRAMEWORKS
8. • Simple way to build user interfaces across all Apple platforms(macOS,
watchOS , iOS ).
• With a declarative Swift syntax that’s easy to read and natural to
write.
29/01/2019 SWIFTUI 8
WHAT IS SWIFT UI??
9. • Xcode : 11 or newer
• macOS : 10.15 Catalina or newer(live streaming)
• iOS :13.0 or newer
29/01/2019 SWIFTUI 9
REQUIREMENTS
10. 29/01/2019 SWIFTUI 10
SIMPLEST SWIFTUI VIEW
• View Protocol :- A type that represents part of your app’s user interface and provides
modifiers that you use to configure views (Not actual view , represent view structure
represntation).
• Body:- The content and behavior of the view.
12. 29/01/2019 SWIFTUI 12
SOMETHING MORE COMPLEX
struct MarvelCharcter: Hashable, Identifiable {
let id: String
let image: String
let title: String
let desc: String
}