Comments (5)
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.
from wescan.
Add the line below when opening the scanner
let scannerViewController = ImageScannerController()
scannerViewController.view.backgroundColor = .purple <----
scannerViewController.imageScannerDelegate = self
self.viewController!.present(scannerViewController, animated: true)
The only issue I still see is that some of the nav buttons are black so they appear to be non existent if you use the black background color. This is why I choose purple as it fits with my apps color theme and it show the nav buttons better
from wescan.
@SonuChopra Thank you. It worked for me.
from wescan.
the view.backgroundColor
was not enough for our project, there were still black tintColor
for the ReviewController
navigation items. I ended up doing something like this:
extension ImageScannerController {
func ios15Fix(backgroundColor: UIColor = .black, backgroundImage: UIImage? = nil) {
if #available(iOS 15, *) {
let barAppearance = UINavigationBarAppearance()
barAppearance.configureWithOpaqueBackground()
barAppearance.backgroundColor = backgroundColor
barAppearance.backgroundImage = backgroundImage
barAppearance.shadowImage = UIImage(color: .black)
navigationBar.isTranslucent = false
navigationBar.standardAppearance = barAppearance
navigationBar.scrollEdgeAppearance = barAppearance
navigationBar.tintColor = .white
navigationBar.shadowImage = UIImage()
view.backgroundColor = .black
}
}
}
let scannerViewController = ImageScannerController()
scannerViewController.ios15Fix()
from wescan.
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.
from wescan.
Related Issues (20)
- Xcode 13.0 beta 3: 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead. HOT 4
- Automatic Capture issue HOT 1
- Allow image picking in image scanning view HOT 2
- barTintColor not working in iOS 15 HOT 5
- Is there an Android version? HOT 2
- Fix iOS15 navBar background color HOT 3
- barTintColor not working in iOS 15 HOT 2
- ios 15 UINavigationBar and UITabBar bug HOT 2
- iOS zoom lens issue when image is selected from gallery HOT 1
- Update cocoapods version HOT 2
- Closing swipe left gesture HOT 2
- ZoomedImage in EditScan VC showing wrong, when try to edit image "provided" from gallery. HOT 1
- Use VNSequenceRequestHandler instead of VNImageRequestHandler HOT 1
- Should we fix swift lint errors? HOT 1
- Scan Color Change HOT 1
- Corner Detection Error HOT 2
- Change Background Color HOT 2
- From gallery : No such file or directory
- Carthage Dependency "WeScan" has no shared framework schemes HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wescan.