You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple radar style view, written in Swift, pure CoreAnimation (no images). Highly adjustable.
12
12
13
13
## Usage
14
14
15
15
Just place the UIView somewhere in your controller and make it SonarView class.
16
16
17
-
SonarView copies the data source and delegate patter from UITableView.
17
+
SonarView copies the data source and delegate patter from UITableView.
18
18
19
19
```swift
20
20
/// Data source
@@ -35,9 +35,9 @@ public protocol SonarViewDataSource: class {
35
35
36
36
`SonarItemView` is just a UIView subclass. In order to use your custom view in radar, make your view SonarItemView subclass. The size of view is determined via layout. The layout is defined by SonarViewLayout protocol. Sonar comes with one predefined layout - SonarViewCenteredLayout. The items in a wave are placed from edges to the center, for example if we have 4 items in wave, first is placed at the left side, second at the right side, third at the left again but a right from the first one and so on. I know, the image would be better:
If you need different behaviour, you can of course create your own layout by adopting the SonarViewLayout a pass it to the SonarView. See [SonarViewLayout](https://github.com/thefuntasty/Sonar/blob/master/Pod/Classes/SonarViewLayout.swift) for more information.
40
+
If you need different behaviour, you can of course create your own layout by adopting the SonarViewLayout and pass it to the SonarView. See [SonarViewLayout](https://github.com/futuredapp/Sonar/blob/master/Pod/Classes/SonarViewLayout.swift) for more information.
41
41
42
42
The last protocol is Delegate which handles selections and titles on each wave
43
43
@@ -66,7 +66,7 @@ If you need to expose another properties or you have ideas how to improve it, fi
0 commit comments