Skip to content

Commit 9d40fce

Browse files
committed
fix(iOS): lib init by removing override
1 parent 0d75cb9 commit 9d40fce

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ override func application(_ application: UIApplication, supportedInterfaceOrient
135135
}
136136
```
137137

138+
Note: if you are targeting react-native > 79.x, you can omit the `override` keyword.
139+
138140
If you need help, you can check the example project.
139141

140142
## Usage

example/ios/OrientationDirectorExample/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3232
return true
3333
}
3434

35-
override func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
35+
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
3636
return OrientationDirector.getSupportedInterfaceOrientationsForWindow()
3737
}
3838
}

0 commit comments

Comments
 (0)