This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Model | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
let user = User(name: “Johny”) | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
return true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct User { | |
public let name: String | |
public init(name: String) { | |
self.name = name | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = ‘Model’ | |
s.version = ‘1.0’ | |
s.summary = ‘Model Module’ | |
s.homepage = ‘a link’ | |
s.author = { ‘vani2’ => ‘vani2@me.com’ } | |
s.source = { :git => ‘a link’, :tag => s.version, :submodules => true } | |
s.platform = :iOS, ’13.0’ | |
s.swift_version = ‘5.1’ | |
s.source_files = ‘Classes/*’ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
platform :iOS, ’13.0’ | |
use_frameworks! | |
target ‘ModuleExample’ do | |
pod ‘Model’, :path => ‘Model’ | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
VStack(alignment: .leading, spacing: 8) { | |
Image("image") | |
.cornerRadius(8) | |
VStack(alignment: .leading, spacing: 2) { | |
Text("A day in Shark Fin Cove") | |
.font(.title) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
@GenerateView | |
fun Greeting(name: String) {/* ... */} | |
<GreetingView android:id="@+id/greeting" | |
app:name="@string/greeting_name" /> | |
val greeting: GreetingView = findViewById(R.id.greeting) | |
greeting.setName("Jim") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun NewsStory() { | |
val image = +imageResource(R.drawable.header) | |
MaterialTheme { | |
Column( | |
modifier = Spacing(16.dp) | |
) { | |
Container(modifier = Height(180.dp) wraps Expanded) { | |
Clip(shape = RoundedCornerShape(8.dp)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyProject-iOS | |
|_ReadMe.md | |
|_Source | |
|_myProject | |
|_fastlane | |
|_myProject | |
|_Classes | |
|_Business Logic | |
|_Parser | |
|_Service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
struct ISODateModel: Codable { | |
let date: Date | |
} | |
var json = """ | |
{ | |
"date": "2018-04-20T14:20:00-0700" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/PODInspect/PODInspect.xcodeproj/project.pbxproj | |
+++ b/PODInspect/PODInspect.xcodeproj/project.pbxproj | |
@@ -12,6 +12,7 @@ | |
5132347E1FE94F0900031F77 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5132347C1FE94F0900031F77 /* Main.storyboard */; }; | |
513234801FE94F0900031F77 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5132347F1FE94F0900031F77 /* Assets.xcassets */; }; | |
513234831FE94F0900031F77 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 513234811FE94F0900031F77 /* LaunchScreen.storyboard */; }; | |
+ 80BFE252F8CC89026D002347 /* Pods_PODInspect.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F92C797D84680452FD95785F /* Pods_PODInspect.framework */; }; | |
/* End PBXBuildFile section */ | |
/* Begin PBXFileReference section */ |