Comments (3)
update: it seems the PaginationView shows if I add a frame height: .frame(height: 350)...
So it seems the PaginationView can't figure out its own height.
from swiftuix.
@DominikButz huh, interesting. PaginationView
internally uses an array of UIHostingController
s, maybe I could query for sizeThatFits
and use the max of all the pages as the frame.
from swiftuix.
Thanks. The trick is to simply set the aspect ratio as a modifier of the PaginationView : .aspectRatio(3/2, contentMode: .fit), then the PaginationView will be displayed. There is one little problem I found with your PageControl implementation: if there is a white background, the page control seems to be invisible. Once I switch my app to dark mode, the page control appears. Maybe you can set the page control property pageControlTintColor (you set the tintColor property instead) in the makeUIView function.
from swiftuix.
Related Issues (20)
- Can I add a Modifier that gets the size or frame of the current view HOT 1
- .onSwipe conflicts with PageView
- How to use .toolbar with .windowOverlay HOT 1
- Setting more properties for ImagePicker/UIImagePickerController.
- Crash on Dynamic Presentation Demo Example HOT 1
- Support visionOS HOT 6
- issue on Xcode 15 and tvOS - Stored properties cannot be marked unavailable with '@available'
- CocoaScrollView Can't Handle LazyHStack / LazyVStack. HOT 3
- Setting `SearchBar` `isEditing` binding value to `false` doesn't defocus search bar HOT 6
- ✔シ
- PaginationView currentPageIndex does not update UI when axis is vertical
- Multiple warnings with Xcode 15.0.1 HOT 4
- TextView .font not working HOT 5
- Add spellCheckType: UITextSpellCheckingType for CocoaTextField HOT 1
- TextView not respecting the frame constraint HOT 11
- When using WKWebView in CocoaScrollView, has scroll issue HOT 1
- NavigationBarItems heads up HOT 1
- _measureAndRecordSize resets to zero cause of onDisappear HOT 1
- PaginationView Frame issue inside scroll view
- error: Unknown subcommand or plugin name ‘generate-xcodeproj’ HOT 1
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 swiftuix.