Comments (4)
finally !!
Thank you very much it works !!
from instagram_stories.
Hi @TheSlider32
Thanks for creating an issue :)
Actually, we have created IGHomeController
for this root setup. And this controller has collection view only, What am saying here is you can 1)reuse this view controller for yourself, or create one container view add to try to 2)add this IGHomeController as child-view controller to your own VC.
If you are still now able to achieve it, and which way you are following it. please feel free to reply back to this comment step by step. We will help you to fix it.
from instagram_stories.
When I reuse IGHomeController inside container view the clear cache button doesn't appear. But when I started your project alone it does shows the clear cache button.
How can I activate the clear cache button inside the container view?
Best Regards,
Ido.
from instagram_stories.
Hi @TheSlider32
We have added clear cache button in the NavigationItem of IGHomeController.
check the following code
override var navigationItem: UINavigationItem {
let navigationItem = UINavigationItem()
navigationItem.titleView = UIImageView(image: UIImage(named: "icInstaLogo"))
if isClearCacheEnabled {
navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Clear Cache", style: .done, target: self, action: #selector(clearImageCache))
navigationItem.rightBarButtonItem?.tintColor = UIColor(red: 203.0/255, green: 69.0/255, blue: 168.0/255, alpha: 1.0)
}
navigationItem.rightBarButtonItem?.tintColor = UIColor(red: 203.0/255, green: 69.0/255, blue: 168.0/255, alpha: 1.0)
return navigationItem
}
Try:
Create one subview in your container view and try to add the custom button and give the functionality.
and hook up the button action to your parent func clearImageCache or move this into your child itself. however you want do your customisation.
from instagram_stories.
Related Issues (20)
- Pause story when app goes to background and resume in foreground mode HOT 2
- Not Support other langugae .In arebic language its not working HOT 1
- While playing video if it stops due to network issue, How I can resume progress bar again? HOT 2
- swiftUI 2.0 solution? HOT 3
- Need swipe left or right inside one story cell i.e over scrollview HOT 1
- Story with 100 snaps
- Remove Snaps From Story || Crash when user back after story delete HOT 3
- view controller turns into full screen HOT 1
- ipad issue HOT 2
- Adding that module causes disturbance in remaining app layout
- I'm not able to play video Mainfest file. HOT 4
- How to configure Source folder HOT 5
- Download Story HOT 1
- Swipe up on storyview and it dismissed automatically HOT 1
- didCompletePreview method not being called in my controller, as i want to make the seen request to server HOT 6
- How to save story id when every story start HOT 2
- not work on ipad HOT 5
- Handpick index is not getting 0
- Progress bar in watching snaps is not running in iPAD from 2nd index path
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 instagram_stories.